Esri / calcite-maps

A Bootstrap theme for designing, styling and creating modern map apps.
http://esri.github.io/calcite-maps/samples/index.html
Apache License 2.0
238 stars 173 forks source link

map.View is not a function #207

Closed elake2018 closed 5 years ago

elake2018 commented 6 years ago

Uncaught TypeError: mapView.then is not a function at (index):188 at K (dojo.js:18) at dojo.js:19 at E (dojo.js:19) at ea (dojo.js:19) at g (dojo.js:21) at HTMLScriptElement. (dojo.js:23)

I simply copy and pasted the code page "Example" from the home page here. Map showed up with trail or road data whatever the lines are.

acrateau commented 6 years ago

Change the method from .then to .when. This change was implemented starting with the 4.7 version of the js api.

alaframboise commented 5 years ago

Thanks! fixed https://github.com/Esri/calcite-maps/pull/210