You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
I'm trying to create a simple web app where in I'm using the drawing tools from Leaflet to draw polygon on top of the map. I'm using this newly created rectangular layer and exporting it as GeoJSON format. I'd like to somehow call the Mapbox API and export the tile(possibly save as jpg/png) corresponding to the lat long coordinates described by my GeoJSON.
I found a lot of examples for displaying the tile but nothing about exporting it as an image. The aim for doing this is to be able to send a POST request to my server and perform some analytics on this.
Is there a straightforward way to do this or any pointers on how I could solve this problem?
Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I'm trying to create a simple web app where in I'm using the drawing tools from Leaflet to draw polygon on top of the map. I'm using this newly created rectangular layer and exporting it as GeoJSON format. I'd like to somehow call the Mapbox API and export the tile(possibly save as jpg/png) corresponding to the lat long coordinates described by my GeoJSON.
I found a lot of examples for displaying the tile but nothing about exporting it as an image. The aim for doing this is to be able to send a POST request to my server and perform some analytics on this.
Is there a straightforward way to do this or any pointers on how I could solve this problem?
Thanks!
The text was updated successfully, but these errors were encountered: