This project is read-only.

Pushpin problem in SL4

Dec 8, 2011 at 11:07 AM
Edited Dec 8, 2011 at 1:02 PM


I draw a pushpin and a line on NY like this for a test:

DeepEarth.Map.Core.DynamicLayer dynamicLayer = new DeepEarth.Map.Core.DynamicLayer();
            DeepEarth.Toolkit.Geometry.Pushpin pushpin = new DeepEarth.Toolkit.Geometry.Pushpin() { 
Position = new DeepEarth.Core.Location(40.667, -73.833) };
            DeepEarth.Toolkit.Geometry.LineString line = new DeepEarth.Toolkit.Geometry.LineString() { 
Locations = new System.Collections.ObjectModel.ObservableCollection<DeepEarth.Core.Location>(new List<DeepEarth.Core.Location>() { new DeepEarth.Core.Location(40.667, -73.833), new DeepEarth.Core.Location(41.667, -74.833) }) };

The line doesn't move when zooming which is normal, the pushpin scales properly

but it doesn't start at the right location and when zooming it tries to go (fly) to the location instead of staying pinned to the location.

I use OSM tile source. Maybe I missed a parameter ?

Thanks in advance to help me to make my pushpin working properly.

Dec 8, 2011 at 1:57 PM

I just set the PositionOrigin property and now it works.