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