Hi Khalil,
Thanks for your reply.
See the line layer which I create as below.
private
LayerOverlay CreateLineLayer(string overLayName,string htmlLineColor, PointStyle pointStyle,int lineWidth)
if (_sysLog.IsDebugEnabled)_sysLog.Debug("Entering CreateLineLayer");InMemoryFeatureLayer lineLayer = new InMemoryFeatureLayer();LineStyles.CreateSimpleLineStyle(GeoColor.true);ApplyUntilZoomLevel.Level20;LayerOverlay lineOverlay = new LayerOverlay();TileType.MultipleTile;false;if (_sysLog.IsDebugEnabled)"Exit from CreateLineLayer");return lineOverlay;
Adding line as follows.
midMarkerLayer.Markers.
Add(CreateLineMiddleMarker(markerId,
line.GetCenterPoint(),
lineobj.LinePopupText,
LineMiddleIconPopupWidth,
LineMiddleIconPopupHeight,
LineMiddleIconPopupBorderWidth,
LineMiddleIconPopupBorderColor,
LineMiddleIconPopupBackgroundColor,
true, false));// Setting the Line id
_gatewayEndPointLineLayer, markerId);
mapPrimaryLineLayer.InternalFeatures.Add(lineId,
mapPrimaryLineLayer.DrawingQuality =
HighQuality;
string lineId = string.Format("{0}{1}",new ThinkGeo.MapSuite.Core.Feature(line));DrawingQuality.
I want to refresh the lines.. the markers everything I put in customoverlay with SimpleMarkerlayer is showing automatically. But this lines which I draw is not refreshing automatically. I should just move the map then its showing.. Pl guide me.. thanks. Raja.
// Adding the Middle Marker
lineLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle =
pointStyle;
lineLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle =
FromHtml(htmlLineColor), lineWidth,
lineLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel =
lineOverlay.Name = overLayName;
lineOverlay.TileType =
lineOverlay.IsBaseOverlay =
lineOverlay.Layers.Add(overLayName, lineLayer);
_sysLog.Debug(
}