Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created December 18, 2015 00:23
Show Gist options
  • Select an option

  • Save stdavis/67de602cd095dd3fcf3c to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/67de602cd095dd3fcf3c to your computer and use it in GitHub Desktop.
WebTiledLayer Example
require([
'esri/map',
'esri/layers/WebTiledLayer',
'esri/geometry/Extent'
], function (
Map,
WebTiledLayer,
Extent
) {
map = new Map('mapDiv', {
extent: new Extent({
xmax: -12010849.397533866,
xmin: -12898741.918094235,
ymax: 5224652.298632992,
ymin: 4422369.249751998,
spatialReference: {
wkid: 3857
}
})
});
googleLyr = new WebTiledLayer('https://discover.agrc.utah.gov/login/path/<insert-quad-word-here>/tiles/utah/${level}/${col}/${row}');
map.addLayer(googleLyr);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment