Creating a map
To be able to create a map, you first need to load point data or area data.You can load point data (Excel or KML file) or area data (KML file). You load the data either through the data manager or the data load editor.
See: Loading map data
You can add a map to the sheet you are editing.
Do the following:
- From the assets panel, drag an empty map to the sheet.
-
Click Add dimension and select a dimension or a field.
Geo fields are marked with , .
- Select a field to represent point or area names on the map.
-
Add a dimension or measure to the map (optional).
Dimensions can be used to color a map.
Measures can be used to color a map or set the size of points on a point layer map.
You can add a dimension to the chart in different ways:
| From a data field. (The Fields section is not available in a published app.) | Creating a visualization from fields |
| From master items. | Creating a visualization using master items |
| From the properties panel. |
When you have created the map, you may want to adjust its appearance and other settings in the properties panel.
Adding a background map
You can add a background map to both point maps and area maps. However, if you have added a point layer to your map, a CartoDB background map is automatically added. You can use maps from other providers.
Do the following:
-
In the toolbar, click @Edit.
-
In the properties panel to the right, click Background.
-
Switch Show to On.
-
Switch Map service to Custom.
-
After URL, enter the URL to a slippy map server.
For example, http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png .
-
After Attribution, enter the attribution string for the map.
For example, © <a href='http://www.opencyclemap.org/' target='_blank'>OpenCycleMap</a>. Map data © <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors.