Using VB.NET 2010, ocx version 4.8.8.
The expression defined for the category below correctly executes, but the only thing that shows up are the provinces with IDs other than 18. If I uncomment the DefaultDrawingOptions.Visible, I get a blank screen. Thus, the only thing not displaying are the points I'm attempting to draw as a picture. Any ideas on why the pictures aren't showing up?
The expression defined for the category below correctly executes, but the only thing that shows up are the provinces with IDs other than 18. If I uncomment the DefaultDrawingOptions.Visible, I get a blank screen. Thus, the only thing not displaying are the points I'm attempting to draw as a picture. Any ideas on why the pictures aren't showing up?
Dim sf1 As New MapWinGIS.Shapefile
Dim unitImage1 As New MapWinGIS.Image
Dim sfCategory As MapWinGIS.ShapefileCategory
sf1.Open(".\07_03_settlements.shp")
unitImage1.Open(".\redbox.bmp")
AxMap1.AddLayer(sf1, True)
sfCategory = sf1.Categories.Add("Province 18")
sfCategory.Expression = "[PROV_ID] = 18"
sfCategory.DrawingOptions.PointType = MapWinGIS.tkPointSymbolType.ptSymbolPicture
sfCategory.DrawingOptions.Picture = unitImage1
sf1.Categories.ApplyExpressions()
'sf1.DefaultDrawingOptions.Visible = False
AxMap1.Redraw()