ThinkGeo.com    |     Documentation    |     Premium Support

Applying specific styles for specific layers

Hello,

is it possible to limit the application of a style to a specific layer? At the moment, I’m setting the styles on a zoom level contained in a zoom level set which is global for all layers. Do I have to duplicate the zoom level set or is there another possibility like defining separate styles for different layers or discerning the shapes by layer in a style?

Regards,
Markus Meyer

Hi Markus_Meyer,

In fact in our map you can only set style for layer but not overlay, because our LayerOverlay don’t have the property for zoomlevelset, please let me know your more detail code here.

Regards,

Don

Hi,
I’m using now different instances of ZoomLevelSet for the different layers to be able to set different styles. In my case, the coloring gradient for areas is the variant part.
Setting the ZoomLevelSet on layers instead of overlays is perfectly ok.
Regards,
Markus

HI Markus,

I am glad to hear that works.

Regards,

Don