ThinkGeo.com    |     Documentation    |     Premium Support

Show different InternalFeatures at different zoom levels

Hello,

Is there a way to show the various features in a layer’s .InternalFeatures at different zoom levels? Right now I am creating a layer for the items at zoom level 4, and then a layer for the zoom level 6 items, and another at zoom level 10. Can I add all these features to a single layer, and somehow designate each to show only at the zoom level I want? Maybe setting a value in a column or something?

I ask because it seems like one of the big issues when it comes to performance with the WinForms map is the amount of layers you have. We have found that the fewer layers, the better, so I’m refactoring to increase features and reduce layers.

Thanks,
Dib

Hi Dib,

You can set different styles for each zoomlevel in same layer.

If you want to shows different features, you need have a flag column in feature, so the style can know shows which feature by the special style for example valueStyle.

And the code should looks like:

shapeFileLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle =
shapeFileLayer.ZoomLevelSet.ZoomLevel02.DefaultAreaStyle =
shapeFileLayer.ZoomLevelSet.ZoomLevel03.DefaultAreaStyle =
shapeFileLayer.ZoomLevelSet.ZoomLevel04.DefaultAreaStyle =

Wish that’s helpful.

Regards,

Ethan