We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Zoom to ...
There have been times when I've wanted to just click a button and zoom around to a boundary including all of the current bookmarks or drawings.
It might be something as simple as:
const bounds = window.plugin.drawTools.drawnItems.getBounds(); if (bounds.isValid()) { map.fitBounds(bounds); }
and
const bounds = L.featureGroup(window.plugin.bookmarks.starLayerGroup.getLayers()).getBounds(); if (bounds.isValid()) { map.fitBounds(bounds); }
Heck, fitBounds() may already have a validity check allowing them to simplify further, but this way would allow for feedback in an else.
fitBounds()
else
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There have been times when I've wanted to just click a button and zoom around to a boundary including all of the current bookmarks or drawings.
It might be something as simple as:
and
Heck,
fitBounds()
may already have a validity check allowing them to simplify further, but this way would allow for feedback in anelse
.The text was updated successfully, but these errors were encountered: