2.0.1 • Published 7 months ago
@vcmap/search-esri v2.0.1
Esri Search Plugin
Extends search widget using Locator ArcGIS Rest API
Configuration:
Property | Type | State | Description |
---|---|---|---|
url | string | required | URL of the search service |
addressMapping | Record<string, string> | required | Mapping the ESRI Geocoding attributes to the VC Map Address Balloon attributes |
maxLocations | string | optional | The Maximum number of results |
zoomDistance | number | optional | The distance to use, when flying to the result |
Example:
{
"url": "https://service.foo.bar/arcgis/rest/services/Locator/locator_foo/GeocodeServer",
"addressMapping": {
"addressName": "Match_addr"
},
"maxLocations": 6,
"zoomDistance": 240
}
For internal testing, you can find an example vcm.config.js
to use with the given config in the wiki.