Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search #362

Closed
ldanzinger opened this issue Jun 10, 2021 · 2 comments
Closed

Search #362

ldanzinger opened this issue Jun 10, 2021 · 2 comments

Comments

@ldanzinger
Copy link

As a user... I want a text box where I can search for a place, address, or feature, get results, and display them on a map.

Min Ship (High Priority):

  • User can search for place or address
  • Suggestions are returned (if supported by locator).
  • Out of the box, the search bar works with AGOL world geocoding service. No configuration required. Just add to your app, and you can geocode and show results on map.
  • Works with API Keys
  • When user selects a suggestion or hits enter, a default graphic is added to the geoview and optionally the viewpoint is changed
  • Added graphics contain attributes with geocode result information, so that developer can identify and display a callout with the geocoded address info
  • works in 2D and 3D
  • Developer can clear geocode result graphics from the view

Nice-to-haves (Moderate Priority):

  • Developer can customize to specify their own locator, whether online (service endpoint/item) or offline (either locator file or from MobileMapPackage.locatorTask)
  • Developer can easily modify style of graphic "pin" that is dropped (they might want to change the picture marker symbol or simple marker symbol style)
  • Developer can opt to continue adding new pins with each search (add to), or to always only have 1 pin with the latest search (add as new).
  • To consider - how can we build this so we can pull it into the route directions control when we get to that later? (https://developers.arcgis.com/javascript/latest/sample-code/widgets-directions/)
  • To consider - how do we handle multiple results? If I search for "Coffee" and there are 8 results, can the developer opt to show all 8?
  • Can search feature tables for features
  • Customize search pins for the returned category ("coffee", "restaurants", "gas station", etc)

Resources:

Here is the JS Search Widget - https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-3d/

image

image

image

image

image

@nCastle1
Copy link
Contributor

Addressed by #380

@nCastle1
Copy link
Contributor

nCastle1 commented Jan 6, 2022

This is complete, closing

@nCastle1 nCastle1 closed this as completed Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants