You are here. See how this question connects to other ideas.
Select a node to open its page · Expand to read within the map
One question
map: Is map an arbitrary spatial graph?
map addresses geographic locations, map centers and markers.
Showing a conference location is a geographic-map use. A draggable concept graph expresses knowledge relationships; it is not automatically the map primitive. The registry’s Leaflet reference is a Web implementation detail.
Start with these properties
center gives the initial center as latitude followed by longitude. zoom sets the initial zoom level, and markers lists locations. Within each marker, lat and lng mean latitude and longitude, while label supplies its description.
Read a structural example
From the source registry. This is structural reading material, not a live demo; referenced resources and actions require an application.
{
"id": "office-map",
"type": "map",
"props": {
"center": [
37.7749,
-122.4194
],
"zoom": 12,
"tileStyle": "carto-dark",
"markers": [
{
"lat": 37.7749,
"lng": -122.4194,
"label": "HQ",
"intent": "info"
},
{
"lat": 37.785,
"lng": -122.409,
"label": "Office 2",
"intent": "success"
}
],
"fitMarkers": true
}
}tileStyle chooses a basemap style and fitMarkers: true requests a view that includes every marker. A marker’s intent supplies presentation semantics, such as information or success coloring; it does not verify the place. This is a flat-map configuration; a globe requires a separately supported rendering choice.
Check your understanding
How does a concept graph differ from the map type?
A concept graph expresses knowledge relationships; map concerns geographic positions and markers.