ZoomToDistrictCommand

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

The ZoomToDistrictCommand allows you to input a district and then zoom to that geometry on the map.


CommandVerb

zd

Parameters

NameTypeDescription
ValuestringIs the name of the district to zoom to.
HighlightboolHighlights geometry
BufferdoubleExpands 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