Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save stdavis/d3a42cb7a6b8755c45fc52c628835949 to your computer and use it in GitHub Desktop.
require([
'esri/map',
'esri/layers/ArcGISTiledMapServiceLayer'
],
function (Map, Tiled) {
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);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment