how to add search features to Geocoder
See original GitHub issueIssue Description
I need to add search features to Geocoder. I have done this in ESRI Search widget in web AppBuilder before. this time I added code into Geocoder.js like this, but search result return not found. Or is available a search widget including data search and geocoder? Please help!:
sources: [{
locator: new Locator("http://cohgims.houstontx.gov/arcgis/rest/services/AddressLocators/Locator_composite/GeocodeServer"),
name: "HOU PWE Locator",
singleLineFieldName: "SingleLine",
placeholder: "Enter Address or Intersection",
countryCode: "",
maxResults: 30,
searchInCurrentMapExtent: false,
highlightSymbol: new PictureMarkerSymbol("https://js.arcgis.com/3.18/esri/dijit/Search/images/search-pointer.png", 36, 36).setOffset(9, 18)
}, {
"layerId": "RBH_wab_76_0",
"url": "http://pwegis.houstontx.gov/arcgis/rest/services/PROD/RBH1/MapServer/4",
"name": "CIP Projects",
"placeholder": "Enter Project No. or Description",
"searchFields": ["CIP_NO", "PRO_SCOPE"],
"displayField": "CIP_NO",
"exactMatch": false,
"maxResults": 300,
"type": "query"
}];
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Tutorial: Find features—ArcGIS Pro | Documentation
On the Map tab, in the Layer group, click the Add Data drop-down menu, and click Data ... Since this tutorial focuses on...
Read more >Geocoding Service | Maps JavaScript API - Google Developers
At the top of the page, select ENABLE API to display the Library tab. Alternatively, from the left side menu, select Library. ·...
Read more >Local search with the Geocoding API | Help - Mapbox docs
This tutorial guides you through the process of creating a local search app using optional parameters from the Mapbox Geocoding API.
Read more >Guide - HERE Geocoding & Search API
HERE Geocoding and Search allows you to create location-enabled applications that allow users to search for HERE Points of Interest (POIs), forward/reverse ...
Read more >documentation/add-search-to-a-map.md at master · pelias ...
Inside the same <script> tag, and after the code you just added for the map, initialize a search box and add it to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JudyZhou You can use the Esri Search widget with CMV just as you have done with the WAB. The Esri Geocoder widget has been deprecated by Esri so the Search widget is the preferred option. We have switched to the search widget in CMV.
Hello, can I add my own GeocodeServer to the search widget? I am trying for the search widget to also recognize APNs, or would it only be suited for the Find widget?