documentation for redirect (#173)

* documentation for redirect

* fix location of command

* relitive > relative
This commit is contained in:
meeki007 2021-09-09 08:55:08 -04:00 committed by GitHub
parent 6234299fd4
commit 7484b612eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,6 +400,7 @@ Optional properties include
- **button** - if supplied with a `name` and `icon` property - adds a button to provide user input - sends - **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). 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. - **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 #### To switch layer, move map and zoom