I have successfully created a named map. I can initialize the map (as seen here), and I do get the correct response. Now, to my problem.
How do I show this layer (using the layergroupid I got as a response) on a map with CartoDB.js?
When I look at the documentation I see:
أكثر...
How do I show this layer (using the layergroupid I got as a response) on a map with CartoDB.js?
When I look at the documentation I see:
You can then use the layergroupid for fetching tiles and grids as you would normally (see anonymous map section)
In the anonymous section, I see the following
The tiles can be accessed using: http://{account}.cartodb.com/api/v1/map/:layergroupid/{z}/{x}/{y}.png
How is this done on the client side? Are there any examples out there where you start with a blank map, initialize a named map and add that layergroupid to the map? I have not managed to find such a thing.
أكثر...