documentation for redirect (#173)

* documentation for redirect

* fix location of command

* relitive > relative
pull/175/head
meeki007 3 years ago committed by GitHub
parent 6234299fd4
commit 7484b612eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -400,6 +400,7 @@ Optional properties include
- **button** - if supplied with a `name` and `icon` property - adds a button to provide user input - sends
a msg `{"action":"button", "name":"the_button_name"}` to the worldmap in node. If supplied with a `name` property only, it will remove the button. Optional `position` property can be 'bottomright', 'bottomleft', 'topleft' or 'topright' (default).
- **contextmenu** - html string to define the right click menu when not on a marker. Defaults to the simple add marker input. Empty string `""` disables this right click.
- **redirect** - Redirects user to a url of your choice. `{"command":{ "redirect": "https://nodered.org/" }}` can be a relative or absolute URL.
#### To switch layer, move map and zoom

Loading…
Cancel
Save