The Route and Measure widget for Web AppBuilder works with the Esri Roads and Highways and ArcGIS Pipeline Referencing extensions for ArcGIS Enterprise.
This is a developer sample.
The Route and Measure widget allows you to easily search for routes in your network and identify measures on routes. Users can pan or zoom the map to the whole route or to just a section of a route when measures are provided. Users can type in route and measure values or use the map to select a route and measures.
- Automatically detect a linear referencing enabled map service in the webmap
- Zoom or pan to a route on the map
- Identify measures on a route
- Web AppBuilder for ArcGIS version 2.6
- An LRS enabled map service published with a definition query for time
Deploying Widgets
To use the widget with Web AppBuilder, you should copy the RouteAndMeasure folder to the stemapp/widgets directory. This is located in %webappbuilder_install%/client directory.
For more resources on developing or modifying widgets please visit Web AppBuilder for ArcGIS Documentation
Add a linear referencing enabled map service to the webmap to enable the widget. The LRS map service should be published with a definition query for time.
When configuring the widget, leave 'Measure Precision' blank to use the measure precision configured for the network.
New to Github? Get started here.
- Web AppBuilder API
- ArcGIS API for JavaScript
- Learn more about Esri Roads and Highways for Server
- Learn more about ArcGIS Pipeline Referencing for Server
- Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2017 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's LICENSE.txt file.