Created
December 18, 2015 00:23
-
-
Save stdavis/67de602cd095dd3fcf3c to your computer and use it in GitHub Desktop.
WebTiledLayer Example
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([ | |
| '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