Hello,
I am showing WebImage on the map. When the map is at mid zoom level, the images are shown well far from its location. Please see the below screenshot. You can see the line is drawn on the same point as of image and its shows correctly.
When i zoomed the map, images slows moved to correct location. See the below screenshot
Is there anyway that images are shown on correct position without any zoom constraint?
I have used the "SimpleMarkerOverlay" to store WebImages
SimpleMarkerOverlay markerOverlay = new SimpleMarkerOverlay("Vehicle Markers");
mainMap.CustomOverlays.Add(markerOverlay);
And to draw lines, use below code
InMemoryFeatureLayer lineShapLayer = new InMemoryFeatureLayer();
//Adds the CustomDistanceLineStyle for displaying the distance in meter at mid point for each line segment.
//CustomDistanceLineStyle customDistanceLineStyle = new CustomDistanceLineStyle(DistanceUnit.Kilometer, new GeoFont("Arial", 12, DrawingFontStyles.Bold),
// new GeoSolidBrush(GeoColor.StandardColors.Black), new GeoPen(GeoColor.StandardColors.White));
//lineShapLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(customDistanceLineStyle);
LineShape lineShape = new LineShape();
newLineShape = null;
newLineShape = lineShape;
//Adds a regular LineStyle for displaying in red the LineShape.
LineStyle lineStyle = new LineStyle(new GeoPen(GeoColor.FromArgb(150, GeoColor.StandardColors.Red), 5));
lineShapLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(lineStyle);
lineShapLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay layerOverlay = new LayerOverlay("LineOverlay", false, TileType.SingleTile);
layerOverlay.TransitionEffect = TransitionEffect.None;
layerOverlay.Layers.Add(lineShapLayer);
DynamicOverlay.Layers.Add("TripLinesLayer", lineShapLayer);
I have also attached the marker image in this mail for your reference