The ZoomToDistrictCommand allows you to input a district and then zoom to that geometry on the map.
CommandVerb¶
zd
Parameters
| Name | Type | Description |
|---|
| Value | string | Is the name of the district to zoom to. |
| Highlight | bool | Highlights geometry |
| Buffer | double | Expands geometry on map by a certain amount |
Code Sample
$('#zoomToDistrict').click(function () {
FDOT.Map.executeCommand('zd', { value: 'Sixth', highlight: true, buffer: 1.1 }, function () {});
});
See Also