Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a basemap using WebTiledLayer

See original GitHub issue

Issue Description

Hi, I 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. define([ "esri/layers/WebTiledLayer", 'esri/dijit/Basemap', 'esri/dijit/BasemapLayer' ], function ( WebTiledLayer,Basemap, BasemapLayer ) { return {

nearMap: { title: 'Nearmap', basemap: new Basemap({ id: 'nearMap', layers: [new WebTiledLayer({ url: "https://us${subDomain}${col}&y=${row}&z=${level}&nml=v&ticket=ticket&httpauth=false&version=2", copyright: "Nearmap, 2016", id: "nearMap", subDomains: ["0", "1", "2", "3"], minScale:19, maxScale:21 }),

but it didn’t work

init.js:152 GET net::ERR_NAME_NOT_RESOLVED

q {message: “Unable to load…vices/World_Street_Map/MapServer?f=json status: 0”, response: Object, status: 0, responseText: “”, xhr: XMLHttpRequest…}

How can I add a basemap using WebTiledLayer?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

tmcgeecommented, Oct 26, 2016

@jkyoungchoi @rylincoln got it. For reference and for others reading this, the secret sauce is the newer version of the Esri API included in the develop branch. You need to use at least version 3.16 of the API for this to work.

jkyoungchoicommented, Oct 26, 2016

I misread comment, it works on dev. one! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

webTiledLayer | Web Map Specification - ArcGIS Developers
Input required by the user when the layer is added to the web map. ... Live sample web maps showing the WebTiledLayer as...
Read more >
WebTiledLayer in BasemapGallery - Esri Community
Hello! My intention is to add custom basemaps (WebTiledLayer) to BasemapGallery, without ArcGISBasemaps, in the following way:
Read more >
WebTiledLayer | API Reference | ArcGIS API for JavaScript 3.29
The WebTiledLayer class provides a simple way to add non-ArcGIS Server map tiles as a layer to a map. The constructor takes a...
Read more >
BasemapLayer | API Reference | ArcGIS API for JavaScript 3.26
Defines a layer that will be added to a basemap and displayed in the BasemapGallery dijit. Samples. Search for samples that use this...
Read more >
WebTiledLayer in ArcGIS API for JavaScript fails in Chrome ...
Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago. Improve this question.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found