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

New Post: Choosing color when adding layer

$
0
0
How do I programmaticaly set the color of a layer when adding it

I use .AddLayer to add several layers to my map Control. Each layer seems to get a randomly selected color, Everytime I load the layers the colors change.

I would like to set my houseproperties layer to green
my lakes to blue, my rivers to Another shade of blue and so on.

Blue houseproperties and red lakes not so much.

Viewing all articles
Browse latest Browse all 3973

Latest Images

Trending Articles



Latest Images

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