Created
August 3, 2018 14:13
-
-
Save stdavis/2ba58254c56fee72373bf016461547d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require({ | |
| packages: [{ | |
| name: 'agrc', | |
| location: 'http://mapserv.utah.gov/cdn/dojo/agrc/2.0/' | |
| }] | |
| }, [ | |
| 'esri/map', | |
| 'esri/layers/ArcGISTiledMapServiceLayer', | |
| 'agrc/widgets/locate/FindAddress' | |
| ], | |
| function (Map, Tiled, FindAddress) { | |
| var serviceUrl = 'http://mapserv.utah.gov/arcgis/rest/services/BaseMaps/Terrain/MapServer'; | |
| var map = new Map('map-div'); | |
| var tiledService = new Tiled(serviceUrl); | |
| map.addLayer(tiledService); | |
| var findAddress = new FindAddress({ | |
| map: map, | |
| apiKey: 'AGRC-A935BA4E764125' // this will only work for jsbin.com | |
| }, 'find-address-div'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment