rscheitlin

Re: TileLayer doesn't show

Discussion created by rscheitlin Champion on Aug 16, 2017
Branched from an earlier discussion

You added a require to your require array but you did not adjust the order of your require vars.

Your requires and their corresponding vars must be in the same order in AMD style coding.

require([
  "esri/layers/TileLayer",
  "esri/Map",
  "esri/views/MapView",
  "esri/Graphic",
  "esri/geometry/Point",
  "esri/symbols/SimpleMarkerSymbol",
  "esri/geometry/Polyline",
  "esri/symbols/SimpleLineSymbol",
  "esri/geometry/Polygon",
  "esri/symbols/SimpleFillSymbol",
  "dojo/domReady!"
], function(TileLayer, Map, MapView,
      Graphic, Point, SimpleMarkerSymbol,
      Polyline, SimpleLineSymbol,
      Polygon, SimpleFillSymbol
) {

The abc’s of AMD | ArcGIS Blog 

Outcomes