ThinkGeo.com    |     Documentation    |     Premium Support

Map shifting & marker display delay

i have noticed a behavior concerning winformsMap1. My InMemoryFeatureLayer is a "standard" one:


InMemoryFeatureLayer markerLayer = new InMemoryFeatureLayer();
markerLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap;
markerLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.Image = new GeoImage(@"C:\circle.gif");
markerLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;


"circle.gif" is a GIF file 30x30 pixels. When the user click on the map, a marker is drawn on "markerLayer" on where mouse was clicked:

        
InMemoryFeatureLayer drawLayer = (InMemoryFeatureLayer)winformsMap1.DynamicOverlay.Layers["MarkerLayer"];
drawLayer.InternalFeatures.Add("test"+ NumberOfMarkers.ToString() , currentPoint);
winformsMap1.RefreshDynamic();

        
My concern is, after every click, the map "shifts" (or moved) few pixels away to the right side, waited for 2-3 seconds, and when the marker is displayed, the map shifts few pixels away back to the left. I have tested it for quite some  time, tried other GIF markers, they all behave the same. First is the 2-3 seconds delay before the marker is displayed, second is the shifing of the map. I dont think it is the problem of computer speed. Is there any solution to this?

Ric

Ric, 
  
 Thanks for your detailed description! This is a known bug and I think we can fix it in the next version. Sorry for the inconvenience now. 
  
 Thanks, 
  
 Ben