{"action":"created","issue":{"url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/15","repository_url":"https://api.github.com/repos/cmv/cmv-wab-widgets","labels_url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/15/comments","events_url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/15/events","html_url":"https://github.com/cmv/cmv-wab-widgets/issues/15","id":221656677,"number":15,"title":"Errors loading custom basemaps when integrating a WAB widget","user":{"login":"JhopStl","id":16945459,"avatar_url":"https://avatars0.githubusercontent.com/u/16945459?v=3","gravatar_id":"","url":"https://api.github.com/users/JhopStl","html_url":"https://github.com/JhopStl","followers_url":"https://api.github.com/users/JhopStl/followers","following_url":"https://api.github.com/users/JhopStl/following{/other_user}","gists_url":"https://api.github.com/users/JhopStl/gists{/gist_id}","starred_url":"https://api.github.com/users/JhopStl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JhopStl/subscriptions","organizations_url":"https://api.github.com/users/JhopStl/orgs","repos_url":"https://api.github.com/users/JhopStl/repos","events_url":"https://api.github.com/users/JhopStl/events{/privacy}","received_events_url":"https://api.github.com/users/JhopStl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-13T19:17:19Z","updated_at":"2017-04-23T16:32:02Z","closed_at":null,"body":"When adding the WAB widgets and their dependencies (_WABMixin in the controller), I get the following errors upon loading a custom basemap:\r\n\r\n**Basemap.js:4 esri.dijit.Basemap: unable to find the 'layers' property in parameters\r\nBasemapLayer.js:4 esri.dijit.BasemapLayer: unable to find the 'url' or 'type' property in parameters**  \r\n\r\nI was not able to replicate this issue when loading AGOL basemaps.  Also, it's worth noting that the basemap will not load at all in IE when using the same custom basemaps (still loads fine in Chrome, Firefox and Edge). The errors are generated after basemap creation takes place in the config (i.e. wab-measure.js) file.\r\n\r\nAny ideas on what could be causing the issue? \r\n I've made the test site public: http://map.sccmo.org/Main/cmv_wab/demo.html but I can attach code if needed.\r\n\r\nBesides that, the WAB widgets are working great CMV!\r\n\r\nThanks,\r\n\r\nJesse"},"comment":{"url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/comments/296455198","html_url":"https://github.com/cmv/cmv-wab-widgets/issues/15#issuecomment-296455198","issue_url":"https://api.github.com/repos/cmv/cmv-wab-widgets/issues/15","id":296455198,"user":{"login":"tmcgee","id":200780,"avatar_url":"https://avatars2.githubusercontent.com/u/200780?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcgee","html_url":"https://github.com/tmcgee","followers_url":"https://api.github.com/users/tmcgee/followers","following_url":"https://api.github.com/users/tmcgee/following{/other_user}","gists_url":"https://api.github.com/users/tmcgee/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcgee/subscriptions","organizations_url":"https://api.github.com/users/tmcgee/orgs","repos_url":"https://api.github.com/users/tmcgee/repos","events_url":"https://api.github.com/users/tmcgee/events{/privacy}","received_events_url":"https://api.github.com/users/tmcgee/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T16:32:02Z","updated_at":"2017-04-23T16:32:02Z","body":"@JhopStl Since you are using ESRI Map Services, did you try using `basemap` and `baseMapLayers` instead of `layers`? Here's an example for one of your custom basemaps:\r\n\r\n``` javascript\r\naerial2015: {\r\n    title: '2015 Aerial',\r\n    basemap: {\r\n        baseMapLayers: [\r\n            {\r\n                url: 'http://10.10.143.115/scc_gis/rest/services/appservices/JS_ortho2015/MapServer'             \r\n\t    }\r\n        ]\t\t\t\r\n    }\r\n},\r\n```\r\n\r\nNOTE: I cannot test using the public application you provided since the i.p. address 10.10.143.115 is not accessible outside your network. I did test using [these basemaps]((https://github.com/cmv/cmv-app/blob/develop/viewer/js/config/basemaps.js#L48-L67)) in the cmv demo."}}
{"actor":{"display_login":"tmcgee"}}