Hi
What is the difference between PointType.Bitmap and PointType.Symbol?
Cheers
Steve
Hi
What is the difference between PointType.Bitmap and PointType.Symbol?
Cheers
Steve
Steve,
Thanks for your post and questions.
When we set the PointType to bitmap, then we can try to represent a point using an image, following code snippet shows how to use the image “United States.png” to represent the points in the bitmapLayer.
;
InMemoryFeatureLayer bitmapLayer = new InMemoryFeatureLayer();
bitmapLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap;
bitmapLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.Image = new GeoImage(@"..\..\SampleData\Data\United States.png");
bitmapLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
When we set the PointType to symbol, we can use some predefined symbols set by PointStymbolType(Circle, Square, Triangle, Cross,Diamond, Star etc) to represent points in the layer. In the following code, the PointType will be set to Symbol automatically when we passed in the Circle as its PointSymbolType.
InMemoryFeatureLayer bitmapLayer = new InMemoryFeatureLayer();
//bitmapLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Symbol;
bitmapLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(PointSymbolType.Circle, new GeoSolidBrush(GeoColor.StandardColors.Red), 20);
bitmapLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
bitmapLayer.InternalFeatures.Add("Crossing", new Feature(new PointShape(-95.2806, 38.9554)));
Any more questions just feel free to let me know.
Thanks.
Yale