Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: A sample code for add symbology to layer

$
0
0
The above code should work base on decumention but It removes shape and shows nothing to map window.What is wrong in this method ?
    IMapFeatureLayer lay = (IMapFeatureLayer)map1.Layers[0];
            lay.Symbology.ClearCategories();
            PolygonSymbolizer lightblue = new PolygonSymbolizer(Color.LightBlue);
            lightblue.OutlineSymbolizer = new LineSymbolizer(Color.Blue, 1);
            lay.Symbolizer = lightblue;

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>