-
Notifications
You must be signed in to change notification settings - Fork 13
Layer Configuration
This page details the different options to create a new layer in neomap.
You will have to configure:
- The data source: which data to use
- The map rendering method: how will the data appear on the map
In all cases, you will have to define:
- Layer name: used to identify a layer in the layer list and on the map
-
Layer type: this parameter defines how to fetch data from Neo4j
- Simple: just define a node label and the properties holding the latitude/longitude attributes
- Advanced: fetch the nodes via a Cypher query for extended configuration (for instance adding a specific WHERE clause)
- Spatial: use neo4j-spatial layer. At the moment, only simple point layer are supported.
Next section details the configuration for each of these layer types.
- Node labels: which node label(s) should be used. If nothing is selected, will use all labels.
-
Latitude property: which node property contains the latitude coordinate (default is
latitude
) -
Longitude property: which node property contains the longitude coordinate (default is
longitude
) -
Tooltip property: property used to display popup on each map marker (default is
name
). If the field is empty, no popup are shown.
neomap supports neo4j-spatial simple point layer. You can read from such a neo4j-spatial layer by selecting the "Spatial layer" type and configuring the following properties:
- Spatial layer: which node labels should be used. If nothing is selected, will use all labels.
-
Tooltip property: property used to display tooltip on each map marker (default is
name
). If the field is empty, no tooltips are shown.
-
Query: write down the cypher query to select the nodes to be shown. The query must return:
latitude
longitude
-
tooltip
(optional) All other returned columns are ignored.
NB you can switch from simple or spatial layer TO advanced layer without loosing information. But when switching from an advanced layer configuration to any other type, there is no guarantee that the information will be preserved.
Once the data is there, there are still several possible methods for rendering;
-
Rendering:
- Markers
- Heatmap
- Polyline
Each point is shown with a circle marker. Clicking on a marker will display the tooltip information if the tooltip property was set. You can also configure:
- Color: color (including transparency) to be used for markers
- Max nodes: maximum number of nodes that will be fetched and displayed. In previous noemap versions, fetching too many nodes was likely to to overload your browser but it is now fixed. This option might disappear in the future.
A heatmap showing areas with higher point density will be rendered instead of a marker per point. You can configure the radius used to count the number of points:
- Radius: radius for heatmap point
In a polyline layer, a line is drawn to link consecutive points together. In the current version, only a single polyline will be drawn, which makes it very efficient to visualize paths (see https://medium.com/neo4j/visualizing-shortest-paths-with-neomap-0-4-0-and-the-neo4j-graph-data-science-plugin-18db92f680de)
- Color: color to be used for the line