Re: TileLayer doesn't show

370
0
08-16-2017 04:56 AM
RobertScheitlin__GISP
MVP Emeritus

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 

0 Kudos
0 Replies