How to use the map.zoom-to-scale in a custom command
I'm trying to use the map.zoom-to-scale in the search Custom Command to zoom to a larger scale. I can't figure out to include the argument for the scale value. See below.. This is incorrect.
[
"highlights.clear",
"highlights.clear-focus",
"tasks.search",
"highlights.add",
"map.zoom-to-features",
{
"name": "map.zoom-to-scale",
"arguments": "9047"
}
]
Does anyone know the syntax for this command action?
Thanks,
Frank
0
-
Hi Frank,
Please try the following:
{ "name": "map.zoom-to-scale", "arguments": { "scale": 9047 } }Our GXW API docs, you may find it helpful.
Cheers,
Pairin
1 -
Hi Pairin,
Worked like a charm!! Is there some documentation for the command actions? Might come in handy.. 😀
Thanks so much,
Frank
0
Please sign in to leave a comment.
Comments
2 comments