Reputation: 1
Is it possible to make Panoramio Pictures and WeatherLayer icons appear above (have a higher zIndex than) a polygon?
I have a map with transparent Polygon Overlays, and when I add the Panoramio or WeatherLayers to the map, the Panoramio photos and weather icons appear below the polygon overlays.
The pictures and weather icons can be seen below the polygon because the polygon is partially transparent, but the user cannot interact with those photos or icons because the polygon is on top of them.
The screen shot below shows an example of this:
You can view an example page here.
You can add and remove the different overlays/layers. I've tried setting the zIndex of the polygon to negative numbers, but they always appear above the Panoramio and WeatherLayer icons.
The PanoramioLayer and PanoramioLayerOptions API references don't say anything about a zIndex. The same goes for the WeatherLayer and WeatherLayerOptions API references.
Upvotes: 0
Views: 540
Reputation: 11
You're need to set option to the polygon: clickable: false
But all polygon's mouse events won't work
Upvotes: 1