The ZoomToWorkProgramItemCommand allows you to input the item and item segment of a project and then zoom to that geometry on the map.
CommandVerb¶
zwp
Parameters
| Name | Type | Description |
|---|
| Value | string | Is the item/item segment of the project to zoom to. |
| Highlight | bool | Highlights geometry |
| Buffer | double | Expands geometry on map by a certain amount |
Code Sample
$('#zoomToWpItem').click(function () {
FDOT.Map.executeCommand('zwp', { value: '4252801', highlight: 'true', buffer: 2.0 }, function () {});
});
See Also