Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

GeoJSON Leaflet Polygon tile #1270

Open
karanchawla opened this issue Nov 25, 2018 · 0 comments
Open

GeoJSON Leaflet Polygon tile #1270

karanchawla opened this issue Nov 25, 2018 · 0 comments

Comments

@karanchawla
Copy link

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!

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

No branches or pull requests

1 participant