Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

ZoomToCoordinateCommand

RSS
Modified on Thursday, 26 June 2014 05:24 PM by 156.75.108.159 Categorized as Commands
The ZoomToCoordinateCommand allows you to zoom to any specified longitude & latitude. It accepts ZoomToCoordinateParameters.


CommandVerb

zcoord

Parameters

NameTypeDescription
LatdoubleThe latitude that should be zoomed to.
LongdoubleThe longitude that should be zoomed to.
ShouldHighlightboolSpecifies wether a graphic should be placed over the point being zoomed to. Default is true.
ShouldZoomboolDespite the command's name, it will no actually zoom unless this value is set to true. Default is true.
ZoomBufferRadiusdoubleControls how far in the map will zoom in; larger values will zoom the map in less than smaller values. Default is "100".
ZoomBufferUnitstringSpecifies 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



See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.