The ZoomToCountyCommand allows you to input a county name and then zoom to that geometry on the map.
CommandVerb¶
zc
Parameters
Name | Type | Description |
---|
Value | string | Is the name of the county to zoom to. |
Highlight | bool | Highlights geometry |
Buffer | double | Expands 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