Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created August 3, 2018 14:13
Show Gist options
  • Select an option

  • Save stdavis/2ba58254c56fee72373bf016461547d4 to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/2ba58254c56fee72373bf016461547d4 to your computer and use it in GitHub Desktop.
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