I'm actually starting to suspect that I can't get a .jpg image from a map created with the UI editor without using a browser. I think I might have to use the API to re-create the map my colleague created so that the map has a
layergroupid. An acceptable answer to this question might be to confirm those suspicions.
I'm a complete beginner with CartoDB.
Somebody in our organisation has created a map in the CartoDB editor (described here), and I need to get a .jpg image from it. The map covers the whole of the country and shows property boundaries. The person who created it is responsible for the styling of the map and for the data the map uses. The datasets are private.
The map need only be accessible to trusted entities. The two I can think of are: (1) the person maintaining the map and (2) my code. The code I'll be writing runs in a totally private context on our server. It would therefore be OK for my code to use the api_key when retrieving the .jpg. I can also set a password for the map and use that. (The images retrieved will be stored on our company's server, and those stored images served up to our API users in a completely different security context.) So access to the map is totally private.
I've seen some information about getting .jpg images, but it all seems not to work for me because it requires a
layergroupid, which it seems is only available if the map was created through a CartoDB API. Since my map was created using the editor, I don't think there is a
layergroupid, and so those methods don't apply.
It might be possible to create the map using the CartoDB API instead of using the editor, so that the map has a
layergroupid. This approach has drawbacks though, because my colleague would need to learn a different way to create the maps.
- complete beginner with CartoDB
- map created using CartoDB editor, private datasets
- method of retrieving .jpg totally private, so could use api_key
- prefer not to re-create existing editor-created map via CartoDB API
Given those constraints, how can I get the .jpg images I need from the map?