Skip to content
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
modules
resources
widgets
.bowerrc
.eslintrc
.gitattributes
.gitignore
.gitmodules
.travis.yml
Gruntfile.js
LICENSE.md
README.md
_SpecRunner.html
agrc.profile.js
bower.json
package-lock.json
package.json
secrets.json.sample

README.md

Build Status

AGRC Dojo Widgets

Getting Started

  1. Clone the repo
  2. npm install && bower install && grunt

You can use our widgets just like any other Dojo widget. Just be sure to set your packages loader config property so that Dojo knows where to look.

Sample

require({
  packages: [{
    name: 'agrc',
    location: '../agrc.widgets'
  }]
}, [
  '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: 'get your key at http://developer.mapserv.utah.gov'
  }, 'find-address');
});

Browser Compatibility

We support the same browsers that ESRI's API does.

You can’t perform that action at this time.