-
Notifications
You must be signed in to change notification settings - Fork 229
Export image through command line? #1024
Comments
Yes -- this is possible. The Download button in the export pane is is a link to the Mapbox Studio endpoint that delivers the image. As long as Mapbox Studio is running, you can hit the endpoint from either the browser or the terminal. There are actually two endpoints -- one takes WSEN coordinates and generates pixel dimensions from that, the other takes a center point and width & height in pixels and determines the geographic boundaries from that. URI format: Note on scale: 1 is standard screen resolution (256x256px tiles), 2 is retina (512x512px tiles) and so on..., scale should be a round number when multiplied by 256, otherwise you'll get weird lines where the tiles are stitched together. |
AWESOME |
What should I plug into that {tmstyle} parameter? I tried "username.map_id" and "map_id" but i get the following msg in my browser. Error: Invalid style protocol My url looks like: |
@wheredoesyourmindgo what that if you're using the packaged version of Mapbox Studio you can construct the tmstyle by concatenating |
Awesome += 1; //thanks! |
@camilleanne I need to add directions to the static maps. Do you know how I should proceed to add geojson support? |
Awesome += 1; //thanks! |
I've just discovered MapBox Studio and its excellent hi-res image export function. But is it possible to achieve the same via the command line (so that I can export an image without using the GUI)?
I'd really appreciate an example.
Many thanks,
The text was updated successfully, but these errors were encountered: