Esri / application-boilerplate-3x-js

Starter application that simplifies the process of building templates for the ArcGIS.com template gallery.
https://developers.arcgis.com/javascript/
Apache License 2.0
90 stars 68 forks source link

Issue when appID is set in default.js, not in url #23

Closed MikeMillerGIS closed 10 years ago

MikeMillerGIS commented 10 years ago

template.js _queryApplicationConfiguration functions

if (!esriLang.isDefined(webmapParam.webmap) && response.itemData.values.webmap && this.config.webmap) { this.config.webmap = response.itemData.values.webmap; }

Command Window of the values:

? response.itemData.values.webmap "40f993fccee34ebb9e9c1c6ecc9bf9fb" ? this.config.webmap "" ? esriLang.isDefined(webmapParam.webmap) false

MikeMillerGIS commented 10 years ago

Replace the lines above with this code resolves the issue:

if (!esriLang.isDefined(webmapParam.webmap)) { if (response.itemData.values.webmap !== "") { this.config.webmap = response.itemData.values.webmap; } }

driskull commented 10 years ago

thanks!