Somebody else in our CartoDB organisation has created a map.
I need to use the Static Maps API to get a .jpg image from the map, as described here. I'll be storing the .jpg locally and serving it up to a customer via our own API.
I've tried various values for the :token
parameter, but none seems to work:
- map name (slightly complicated because it contains a space, which I've substituted with both + and %20)
- our API key (we use CartoDB.js elsewhere in our organisation)
- the GUID in the three samples I see when on
https://<ouraccount>.cartodb.com/dashboard/maps
I click "publish" on the map.
This leads me to construct a URL like:
https://<ouraccount>/api/v1/map/static/center/<token>/14/-41.2588729/174.8958929/200/200.jpg
But when I try to visit the URL in my browser, I get the message:
{"errors":["Invalid or nonexistent map configuration token '<token value>'"]}
How do I find the layergroupid?