Home > Geopedia API > setPosition

setPosition

Sets a current widget map position and scale.

Command JSON members:

  • command: "setPosition",
  • x: optional center x coordinate,
  • y: optional center y coordinate,
  • zoomLevel: optional zoom level

No response is returned.

Examples:


{"command":"setPosition","x":123.456,"y":987.654} 
{"command":"setPosition","zoomLevel":10}