Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to add search features to Geocoder

See original GitHub issue

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(""),
  name: "HOU PWE Locator",
  singleLineFieldName: "SingleLine",
  placeholder: "Enter Address or Intersection",
  countryCode: "",
  maxResults: 30,
  searchInCurrentMapExtent: false,
  highlightSymbol: new PictureMarkerSymbol("", 36, 36).setOffset(9, 18)
}, {
  "layerId": "RBH_wab_76_0",
  "url": "",
  "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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

tmcgeecommented, Dec 29, 2016

@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.

gisnovicecommented, Sep 7, 2017

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?

            search: {
                include: true,
                type: has('phone') ? 'titlePane' : 'ui',
                path: 'esri/dijit/Search',
                placeAt: has('phone') ? null : 'top-center',
                iconClass: 'fa-search',
                position: 0,
                options: {
                    map: true,
                    visible: true,
                    enableInfoWindow: true,
                    enableButtonMode: has('phone') ? false : true,
                    expanded: has('phone') ? true : false,
                    expanded: true,
                    defaultSource: ''
Read more comments on GitHub >

github_iconTop 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/ 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found