Hello,
I want to draw shapes differently based on the zoom level.
I have two sort of shapes: point or polygon.
For each point i would like to show a marker for all the zoom levels.
For the polygon, i would like to show
- a marker when the zoom level is between 1 and 13
- the outline of the polygon (with a InMemoryFeatureLayer i guess) when the zoom level is greater than 14.
Basically for zoom levels in which the polygon is visible, i would like to draw it, but when the polygon is not visible, I d like to replace it by a marker.
Currently i am using a backgroundOverlay to display google maps, a InMemoryFeatureLayer in a dynamic overlay to display the polygons, and the markeroverlay to display the markers.
I cant find a way to display markers according to zoom levels and the nature of my shapes (point or polygon)
About that I am surprise not too see layers in the markeroverlay.
Thanks for your help.
Sebastien