Static Map Styles
Is there any way your generator can also render the styles syntax used for static maps? Otherwise, please add this!
-
Joris Palings commented
Nowadays you can copy the Snazzy Maps JSON, paste it into the "Import JSON" dialog at https://mapstyle.withgoogle.com/ and it'll give you the static maps URL with the JSON you enetered converted to query parameters.
-
AdminAdam Krogh (Admin, SnazzyMaps) commented
Hi Scott,
We don't actually use Google's static map syntax. We did convert the JSON to the static map syntax but got very inconsistent, and sometimes completely wrong, static maps. It seems Google doesn't support all the styles with the static maps as they do in the JavaScript maps.
What we ended up doing was use PhantomJS to take a screenshot of the map and save that image to our CDN. If you sign up for an account and register for a developer API key you can retrieve URLs to each of the images.