ZoomToCountyCommand

Modified on Wednesday, 13 July 2011 11:31 AM by 156.75.200.122 — Categorized as: Commands

The ZoomToCountyCommand allows you to input a county name and then zoom to that geometry on the map.


CommandVerb

zc

Parameters

NameTypeDescription
ValuestringIs the name of the county to zoom to.
HighlightboolHighlights geometry
BufferdoubleExpands geometry on map by a certain amount

Code Sample


$('#zoomToCounty').click(function () {
   FDOT.Map.executeCommand('zc', { value: 'Leon', highlight: true, buffer: 1.1 }, function () {});
});

See Also