Home > Geopedia API > setSettings

setSettings

Sets current widget settings.

Command JSON members:

  • command: "setSettings",
  • getResults: true/false (true, mouse click search will send a message containing the search results to the host, rather than showing the search results inside)
  • showStatusBar: true/false (the visibility of the status bar that is displaying the current coordinates and the copyrights)
  • controlsVisibility: "BIG" / "SMALL" / "NONE" (the style of the pan and zoom controllers)

No response is returned.

Note: each setting is only changed if present and not null! Thus you can change each setting individually, without messing up with the other settings. Just add the ones you want to change, and the other remaining settings will be left unchanged.

Note: all the settings can be also initially set by the URL parameter of the widget.

Examples:


{"command":"setSettings","getResults":true}