{"action":"created","issue":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/619","repository_url":"https://api.github.com/repos/cmv/cmv-app","labels_url":"https://api.github.com/repos/cmv/cmv-app/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/cmv/cmv-app/issues/619/comments","events_url":"https://api.github.com/repos/cmv/cmv-app/issues/619/events","html_url":"https://github.com/cmv/cmv-app/issues/619","id":184093374,"number":619,"title":"Adding a basemap using WebTiledLayer","user":{"login":"jkyoungchoi","id":3847171,"avatar_url":"https://avatars.githubusercontent.com/u/3847171?v=3","gravatar_id":"","url":"https://api.github.com/users/jkyoungchoi","html_url":"https://github.com/jkyoungchoi","followers_url":"https://api.github.com/users/jkyoungchoi/followers","following_url":"https://api.github.com/users/jkyoungchoi/following{/other_user}","gists_url":"https://api.github.com/users/jkyoungchoi/gists{/gist_id}","starred_url":"https://api.github.com/users/jkyoungchoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkyoungchoi/subscriptions","organizations_url":"https://api.github.com/users/jkyoungchoi/orgs","repos_url":"https://api.github.com/users/jkyoungchoi/repos","events_url":"https://api.github.com/users/jkyoungchoi/events{/privacy}","received_events_url":"https://api.github.com/users/jkyoungchoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-10-19T22:46:23Z","updated_at":"2016-10-26T18:58:07Z","closed_at":null,"body":"Hi,\r\nI was trying to add a basemap with TMS from Nearmap, to call this TMS have to use WebTiledLayer instead of BasemapLayer. Some reason BasemapLayer brings only zoom level up to 19 but it works fine with WebTiledLayer.\r\n`define([\r\n    \"esri/layers/WebTiledLayer\",\r\n    'esri/dijit/Basemap',\r\n    'esri/dijit/BasemapLayer'\r\n], function ( WebTiledLayer,Basemap, BasemapLayer ) {\r\n    return {`\r\n\r\n\r\n`nearMap: {\r\n                title: 'Nearmap',\r\n                basemap: new Basemap({\r\n                    id: 'nearMap',\r\n                    layers: [new WebTiledLayer({\r\n                        url: \"https://us${subDomain}.nearmap.com/maps?x=${col}&y=${row}&z=${level}&nml=v&ticket=ticket&httpauth=false&version=2\",\r\n                        copyright: \"Nearmap, 2016\",\r\n                        id: \"nearMap\",\r\n                        subDomains: [\"0\", \"1\", \"2\", \"3\"],\r\n                        minScale:19,\r\n                        maxScale:21\r\n                        }),`\r\n\r\nbut it didn't work \r\n\r\n> init.js:152 GET https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer?f=json net::ERR_NAME_NOT_RESOLVED\r\n\r\n> q {message: \"Unable to load https://services.arcgisonline.com/A…vices/World_Street_Map/MapServer?f=json status: 0\", response: Object, status: 0, responseText: \"\", xhr: XMLHttpRequest…}\r\n\r\nHow can I add a basemap using WebTiledLayer?"},"comment":{"url":"https://api.github.com/repos/cmv/cmv-app/issues/comments/256444482","html_url":"https://github.com/cmv/cmv-app/issues/619#issuecomment-256444482","issue_url":"https://api.github.com/repos/cmv/cmv-app/issues/619","id":256444482,"user":{"login":"rylincoln","id":741887,"avatar_url":"https://avatars.githubusercontent.com/u/741887?v=3","gravatar_id":"","url":"https://api.github.com/users/rylincoln","html_url":"https://github.com/rylincoln","followers_url":"https://api.github.com/users/rylincoln/followers","following_url":"https://api.github.com/users/rylincoln/following{/other_user}","gists_url":"https://api.github.com/users/rylincoln/gists{/gist_id}","starred_url":"https://api.github.com/users/rylincoln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylincoln/subscriptions","organizations_url":"https://api.github.com/users/rylincoln/orgs","repos_url":"https://api.github.com/users/rylincoln/repos","events_url":"https://api.github.com/users/rylincoln/events{/privacy}","received_events_url":"https://api.github.com/users/rylincoln/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T18:58:07Z","updated_at":"2016-10-26T18:58:07Z","body":"@tmcgee  @roemhildtg Jack (@jkyoungchoi) wasn't using the development branch.  He works with me - I just checked out the development branch and copied his basemap.js code into it and it works.  So thank you for your help.  👍 I think we're good now."}}
{"actor":{"display_login":"rylincoln"}}