Zoom to plot coordinate
Is there anyway to add a Zoom to function with the new Plot Coordinates tool in 2.6.1? Curretnly it just seems to pan to it. It would be handy if we could add a zoom to under the coordinates action menu.
Cheers
Chris
0
-
Hi Chris,
It's totally possible to Zoom to a plotted coordinate. You cannot add this under the coordinates action menu, but you can make it the default behavior when the coordinate is clicked in the list of plotted coordinates.
To enable this you need to manually edit your configuration file. in the "PlotCoordinates" module settings, under behaviors, you should find a configuration block similar to the one below:
{
"name": "CoordinateListItemClickedBehavior",
"commands": [
"ClearDefaultHighlights",
"PanToFeature",
"HighlightFeatureDefault"
]
}
Simply replace "PanToFeature" with "ZoomToFeature" and this will enable zooming in to the feature whenever the coordinate list item is clicked.
Hope this helps!0 -
That works great for me - just wondered if I can add some kind of ZoomToScale to that commands list so it zooms right in? I did try
"ZoomToScale":100,
But there was a parser error - Just my syntax? Is this possible?
Thanks
Thanks0 -
Hi Douglas,
Unfortunately, you cannot specify a command parameter for that module so you cannot set it to a particular scale. So I suggest adding this to our Ideas Board here (https://support.geocortex.com/GSCIdeas?c=09a6000000008RsAAI&filter=1&categ=all&sub-nav=ideas&main-nav=essentials&page=1) and it can be considered for a feature enhancement.
Regards,
Carmen0
Please sign in to leave a comment.
Comments
3 comments