Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measure not visible on layers #141

Open
edbusana opened this issue May 12, 2020 · 6 comments
Open

Measure not visible on layers #141

edbusana opened this issue May 12, 2020 · 6 comments

Comments

@edbusana
Copy link

Create a simple project with QGIS and sport through the qgis2web plugin. I added the measure tool, however in layers with polygons it is not possible to see it. Code is the standard generated by the plugin.
qgis2web 3.13.0

measure

@tomchadwin
Copy link

This is because qgis2web export each layer to its own pane in order to control zIndex. I don't think the measure plugin exposes which pane it is added to, so there is no solution at this point.

@edbusana
Copy link
Author

edbusana commented May 14, 2020

The solution I found was to change the transparency of the layers by 50%. It is not ideal but if the measure plugin is important for your work, it was the alternative.

In my case, I think I will disable the measure until we have a definitive solution.

@tomchadwin
Copy link

tomchadwin commented May 14, 2020

I've tried adding support to pass in a capturePane as an option, but I can't get it to work, I'm afraid:

https://github.com/tomchadwin/leaflet-measure/blob/master/src/leaflet-measure.js#L41
https://github.com/tomchadwin/leaflet-measure/blob/master/src/leaflet-measure.js#L59

@edbusana
Copy link
Author

The same problem happens with another "search" plugin, when viewing the circle. I adopted only the icon as the default and deactivated the circle.

@edbusana
Copy link
Author

I found a solution by chance, while I was solving another plugin.
I don't know if I moved it correctly, but the image below is working.

measure

I just changed the number of the z Index to the hundred of the 100 in the layers that were obstructing. It was by default 400, 401, 402 ... and the measure at 10000, to no avail.

I solved the problems together, now I need to check the search plugin with the invisible circle.

@edbusana
Copy link
Author

Confirmed, search circle working and viewing also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants