Hi Ben,
Thanks for reply.
I tried with multiple tiling, but then rendering became too slow. Which was not acceptable by user? It did not even display dynamic label on spanning the map.
I have total 11 shape layers on map (Total 22, out of which 11 is Actual layers and rest 11 for label). All these layers added to CustomOverlayes.
Below is code for one of label layer.
if (Convert.ToInt32(dsAppConfig.Tables[1].DefaultView[0]["lbl_status"]) != 0) //At label level
{
sl.lyr_line_Buried_Cable_lbl = GetShapeFileFeatureLayer(sShapeFilePath);
iZoomLevelStart_lbl = Convert.ToInt32(dsAppConfig.Tables[1].DefaultView[0]["labelscaleupper"]); //18;
sZoomlevelEnd_lbl = sLevel + dsAppConfig.Tables[1].DefaultView[0]["labelscalelower"].ToString(); // "Level20";
// Create text style by column name.
color = GetGeoColor(slabelfontcolor);
drawingfontstyles = GetDrawingFontStyles(slabeldrawingfontstyles);
textStyle = TextStyles.CreateSimpleTextStyle(sDisplayColName, slabelfontfamilyname, flabelfontsize, drawingfontstyles, color, flabelxoffset, flabelyoffset);
textStyle.AllowLineCarriage = true;
textStyle.BestPlacement = true;
textStyle.OverlappingRule = LabelOverlappingRule.NoOverlapping;
textStyle.DuplicateRule = LabelDuplicateRule.UnlimitedDuplicateLabels;
applyUntilZoomlevel_lbl = (ApplyUntilZoomLevel)Enum.Parse(typeof(ApplyUntilZoomLevel), sZoomlevelEnd_lbl);
zoomLevelSet_lbl = sl.lyr_line_Buried_Cable_lbl.ZoomLevelSet;
startZoomLevel_lbl = zoomLevelSet_lbl.GetZoomLevels()[iZoomLevelStart_lbl];
startZoomLevel_lbl.DefaultLineStyle = linestyle;
startZoomLevel_lbl.DefaultTextStyle = textStyle;
startZoomLevel_lbl.ApplyUntilZoomLevel = applyUntilZoomlevel_lbl;
sl.lyr_line_Buried_Cable_lbl.DrawingMarginPercentage = fDrawingMarginPercentage;
Proj4Projection proj4_lines_Buried_Cable_lbl = new Proj4Projection();
proj4_lines_Buried_Cable_lbl.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(4326);
proj4_lines_Buried_Cable_lbl.ExternalProjectionParametersString = Proj4Projection.GetGoogleMapParametersString();
sl.lyr_line_Buried_Cable_lbl.FeatureSource.Projection = proj4_lines_Buried_Cable_lbl;
layerOverLay.Layers.Add("Lbl_Buried_Cable", sl.lyr_line_Buried_Cable_lbl);
sl.lyr_line_Buried_Cable_lbl.IsVisible = Convert.ToInt32(dsAppConfig.Tables[1].DefaultView[0]["lbl_status"]) == 1 ? true : false;
}
================== Map properties ========
Below are map properties setting at page load
#region Set Map Properties and values
string sUnit = "Meter";
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#B3C6D4"));
Map1.CurrentExtent = new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);
Map1.MapTools.PanZoom.Enabled = false;
Map1.MapTools.PanZoomBar.Enabled = true;
Map1.MapUnit = (GeographyUnit)Enum.Parse(typeof(GeographyUnit), sUnit);
layerOverLay = new LayerOverlay("OSPFM Layers");
layerOverLay.IsBaseOverlay = false;
layerOverLay.ClientCache.CacheId = "OSPFM_Layers";
layerOverLay.TransitionEffect = TransitionEffect.None;
layerOverLay.TileType = TileType.SingleTile;
layerOverLay.Layers.Clear();
//# end of Map properties
#endregion
Thanks
Hiren