ZoomToRoadway

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

The ZoomToRoadwayCommand allows you to input a roadway id and then zoom to that geometry on the map.


CommandVerb

zr

Parameters

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

Code Sample


$('#zoomToRoadway').click(function () {
  FDOT.Map.executeCommand('zr', { value: '42603853', highlight: true, buffer: 1.1 }, function () {});
});

See Also