Named Maps Tutorial | CartoDB
✓ Published0🌍 Public
Aandrewbt
Last edited Aug 15, 2017
Created on Aug 15, 2017
This example demonstrates how to create a map with CartoDB's named map API, combining a raster point layer and a torque layer over a Stamen toner basemap. The code loads two named map configurations, one for interactive points with hover and click infowindows displaying city name and population, and another for a torque visualization that is stopped after loading. It uses the Leaflet map library via `L.map`, CartoDB.js's `cartodb.createLayer` with `type: 'namedmap'` and `'torque'`, and the `cdb.vis.Vis.addInfowindow` method for popups. The data source is a table named `named_map_tutorial_table`.
AI-generated description