wgnhs / lslc-web-app

Web Application for the viewing the WGNHS Lake Superior Legacy Collection
https://wgnhs.github.io/lslc-web-app/
1 stars 0 forks source link

map selection polygon blocks popups #51

Closed cmrRose closed 7 years ago

cmrRose commented 7 years ago

If you draw an area in the map to make a selection, you can't get a popup to appear by clicking on a section within it. It seems like the leaflet draw polygon is 'over' the sections polygons. if you click on a section that partially overlaps the selection, clicking outside of the selection polygon does bring up the popup.

cmrRose commented 7 years ago

popup: image

no popup: image

cmrRose commented 7 years ago

Temporary solution is to move the sections layer to the front every time a shape is drawn. This is not ideal, since the draw shape is obscured by the polygons. An alternative solution is to create a stand-alone popup and have it query the sections layer for any information at that point.