map.zom-to-scale issue
I'm relatively new to the VertiGIS workflow designer (previously used the old Geocortex workflow designer) and I'm trying to convert a bunch of our old workflows. I've kinda hit a wall on one of my workflows that zooms to a certain map scale (2400) before the user selects a location on the map so that they can properly see where they are selecting. I've tried both the “Set Map Extent” activity and the “Run Command” (Command Name: map.zoom-to-scale, Command Parameter: 2400), to no avail. The Set Map Extent activity looks like it requires a geometry to work which might be the problem with that one but I don't understand why the Run Command doesn't work. Has anyone used this successfully?
-
If you are just zooming to a set scale from the current map view, you can use the Get Map Extent activity to return the map center. Pass $mapExtent.center into the Geometry of the Set Map Extent activity along with your desired scale. This will zoom to the desired scale at the center of the current map view.
0 -
That worked, thank you so much Brandon!
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires