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
@@ -449,24 +449,21 @@ NetJSON format used internally is based on [networkgraph](http://netjson.org/rfc
449
449
450
450
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).
451
451
452
-
<!-- Todo: Update this -->
452
+
-`bookmarkableActions`
453
453
454
-
-`hashParams`
455
-
456
-
Configuration for adding hash parameters to the URL when a node is clicked.
454
+
Configuration for adding url fragments when a node is clicked.
457
455
458
456
```JS
459
-
hashParams:{
460
-
show: boolean,
461
-
type: string
457
+
bookmarkableActions:{
458
+
enabled: boolean,
459
+
id: string
462
460
}
463
461
```
464
462
465
-
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:
466
-
1. type – A prefix used to uniquely identify the map node.
467
-
2. nodeId – The ID of the selected node.
468
-
3. zoom – The current zoom level of the map.
469
-
**Note: Zoom is only applied when type is set to `geoMap`**
463
+
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:
464
+
1. id – A prefix used to uniquely identify the map.
465
+
2. nodeId – The id of the selected node.
466
+
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