hi all,
i try to write this code to show POI and its name, but it still show only POI_ID
this is my code:
String busPOIFileName = @"C:\Users\Ahmed\Desktop\POI\Business.shp";
ShapeFileFeatureLayer.BuildIndexFile(busPOIFileName, BuildIndexMode.DoNotRebuild);
ShapeFileFeatureLayer busPOILayer = new ShapeFileFeatureLayer(busPOIFileName);
busPOILayer.DrawingMarginPercentage = 50;
busPOILayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(new GeoImage(Server.MapPath("city.png")));
busPOILayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.City1("POI_NAME");
busPOILayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layerOverlay.Layers.Add(busPOILayer);
Map1.CustomOverlays.Add(layerOverlay);
is there any problem with my code, it works fine with streets.
i am attaching shape file and dbf.
1164-Layer.zip (91.3 KB)