You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -465,24 +465,21 @@ NetJSON format used internally is based on [networkgraph](http://netjson.org/rfc
465
465
466
466
You can customize the style of GeoJSON features using `style` property. The list of all available properties can be found in the [Leaflet documentation](https://leafletjs.com/reference.html#geojson).
467
467
468
-
<!-- Todo: Update this -->
468
+
-`bookmarkableActions`
469
469
470
-
-`hashParams`
471
-
472
-
Configuration for adding hash parameters to the URL when a node is clicked.
470
+
Configuration for adding url fragments when a node is clicked.
473
471
474
472
```JS
475
-
hashParams:{
476
-
show: boolean,
477
-
type: string
473
+
bookmarkableActions:{
474
+
enabled: boolean,
475
+
id: string
478
476
}
479
477
```
480
478
481
-
You can enable or disable adding hash parameters by setting show to true or false. When enabled, the following parameters are added to the URL:
482
-
1. type – A prefix used to uniquely identify the map node.
483
-
2. nodeId – The ID of the selected node.
484
-
3. zoom – The current zoom level of the map.
485
-
**Note: Zoom is only applied when type is set to `geoMap`**
479
+
You can enable or disable adding url fragments by setting enabled to true or false. When enabled, the following parameters are added to the URL:
480
+
1. id – A prefix used to uniquely identify the map.
481
+
2. nodeId – The id of the selected node.
482
+
When a URL containing these fragments is opened, the click event associated with the given nodeId is triggered, and if the map is based on Leaflet, the view will automatically center on that node.
0 commit comments