<commit_before>﻿using System;
using MonoTouch.UIKit;
using System.Drawing;
using MonoTouch.CoreAnimation;

namespace WFS210.UI
{
	public class Marker
	{
		public MarkerLayout Layout { get; set; }

		protected UIImage Image { get; set; }

		public string Name { get; set; }

		public CALayer Layer { get; set; }

		public Marker (string resourceUrl, string name, MarkerLayout layout)
		{
			this.Layout = layout;

			Image = UIImage.FromFile (resourceUrl);

			Name = name;

			Layer = new CALayer ();
			Layer.Bounds = new RectangleF (0, 0, Image.CGImage.Width, Image.CGImage.Height );
			Layer.Position = Position;
			Layer.Contents = Image.CGImage;
			Layer.RemoveAllAnimations ();
		}

		public PointF Position
		{
			get{ return Layer.Position;}
			set{ 
				Layer.Position = value;

				CATransaction.Begin ();
				CATransaction.ValueForKey (CATransaction.DisableActionsKey);
				Layer.Position = Position;
				CATransaction.Commit ();
			}
		}
	}
}
<commit_msg>Removed animation on the markers<commit_after>﻿using System;
using MonoTouch.UIKit;
using System.Drawing;
using MonoTouch.CoreAnimation;
using MonoTouch.Foundation;

namespace WFS210.UI
{
	public class Marker
	{
		public MarkerLayout Layout { get; set; }

		protected UIImage Image { get; set; }

		public string Name { get; set; }

		public CALayer Layer { get; set; }

		public Marker (string resourceUrl, string name, MarkerLayout layout)
		{
			this.Layout = layout;

			Image = UIImage.FromFile (resourceUrl);

			Name = name;

			Layer = new CALayer ();
			Layer.Bounds = new RectangleF (0, 0, Image.CGImage.Width, Image.CGImage.Height );
			Layer.Position = Position;
			Layer.Contents = Image.CGImage;
			Layer.RemoveAllAnimations ();
		}

		public PointF Position
		{
			get{ return Layer.Position;}
			set{ 
				Layer.Position = value;

				CATransaction.Begin ();
				Layer.Position = Position;
				Layer.RemoveAnimation ("position");
				CATransaction.Commit ();
			}
		}
	}
}

{'fraction_non_alphanumeric': 0.1058282208588957, 'fraction_numerical': 0.005112474437627812, 'mean_word_length': 3.4176072234762978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5480654', 'n_tokens_mistral': 747, 'n_tokens_neox': 609, 'n_words': 162}