Skip to content

Commit

Permalink
feat: add search widget snippet Esri#44
Browse files Browse the repository at this point in the history
  • Loading branch information
cyatteau committed Oct 18, 2023
1 parent af37e1b commit 8932e97
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions snippets/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,19 @@
"description": "Change the background of a scene",
"prefix": "sceneBackground"
},
"Search Widget": {
"prefix": "SearchWidget",
"body": [
"new Search({",
"\tlocationEnabled: false,",
"\tpopupEnabled: false,",
"\tresultGraphicEnabled: false,",
"\tsearchTerm: \"${1:Search for a location}\",",
"\tview: view",
"});",
],
"description": "A search bar that gives suggestions through the ArcGIS World Geocoding Service. AMD path: \"esri/widgets/Search\" | ESM path: \"@arcgis/core/widgets/Search.js\""
},
"SimpleFillSymbol": {
"body": [
"{",
Expand Down

0 comments on commit 8932e97

Please sign in to comment.