ThinkGeo.com    |     Blog    |     Wiki    |     Support

Adding a background color to a layer

Is there a way to add a background color to a layer? My users are adding very small layers, and want the background of each layer to be a semi-transparent color so they know how much of the world the layer is taking up.

I don’t see a property on the layers to do this.

Hi Dan,

The layer have a property named Transparency, do you think it’s useful for your scenario?

You can also try to override the DrawCore function, then directly draw the color as a rectangle shape in canvas.

Wish that’s helpful.

Regards,

Ethan

Hi Ethan, thanks for the response. The transparency isn’t what I’m looking for, the second option sounds like it can work. Thanks!

Hi Dan,

It is glad that you have workaround that this issue.
I think we can consider to add one Backgound (GeoColor or GeoBrush) properties for Layer. that you can implement your scenarios easier. Please keep eyes on our Products.

Thanks
Mark

Sounds good, thank you!

Hi Dan,

If you have any advice or meet any issue when using ThinkGeo, please feel free to let us know that.

Thanks
Mark