The ZoomToCoordinateCommand allows you to zoom to any specified longitude & latitude. It accepts ZoomToCoordinateParameters.
CommandVerb¶
zcoord
Parameters
Name | Type | Description |
---|
Lat | double | The latitude that should be zoomed to. |
Long | double | The longitude that should be zoomed to. |
ShouldHighlight | bool | Specifies wether a graphic should be placed over the point being zoomed to. Default is true. |
ShouldZoom | bool | Despite the command's name, it will no actually zoom unless this value is set to true. Default is true. |
ZoomBufferRadius | double | Controls how far in the map will zoom in; larger values will zoom the map in less than smaller values. Default is "100". |
ZoomBufferUnit | string | Specifies how the ZoomBufferRadius is interpretted. Default is "feet". |
XAP File
FDOT.GIS.Client.Commands.ZoomToCoordinate.xap
Source Code
svn://dotsd7gis2/FDOT.GIS.Client.Commands.ZoomToCoordinate/
Note: Subversion
should be configured to allow anonymous read access.
Code Sample
The following zooms to the D7 headquarters:
FDOT.Map.executeCommand("zcoord", {
Lat: 28.050754,
Long: -82.414842 });
Original Author
Donald RaySee Also