Leaflet SVG layer is obscuring the underlying GeoJSON interactivity

المشرف العام

Administrator
طاقم الإدارة
I have SVG on top of GeoJSON in my map. How can a leaflet SVG overlay be placed outside of the leaflet-overlay-pane while keeping GeoJSON in-place within the leaflet-overlay-pane? (For example, how could I put just the SVG into say the leaflet-shadow-pane and then turn pointer events off on the leaflet-shadow-pane making it possible to interact with the GeoJSON?)

Thus-far, when I set:

.leaflet-overlay-pane svg { pointer-events: none;}it seems to disable to disable pointer events to both the SVG and GeoJSON, which defeats the purpose.



أكثر...
 
أعلى