question-mark
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.

How to use basemaps not supported through L.esri.basemapLayer?

See original GitHub issue

I’m trying to use an esri basemap which is not one of the dozen which are named/supported via L.esri.basemapLayer(). Specifically i would like to use the basemap being used in this map. https://www.arcgis.com/home/item.html?id=fcc7fd564c6441fba3b310d2281173b7 The basemap was developed specifically for my project which is part of a collaboration between esri and BYU and is composed of

I’ve been trying to use L.esri.Vector.layer and L.esri.tiledMapLayer. The vector layer method seems to work for a second but then the basemap disappears and the console shows an error that i need to provide a token to use mapbox which is not really a viable option for the web app project i’m working on.

What is the right way to go about using these basemaps? Any suggestions?

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jgravoiscommented, Jan 6, 2021

i’d recommend pegging the version of mapbox-gl-js loaded in the README in https://github.com/esri/esri-leaflet-vector as you described above.

1reaction
gavinrcommented, Dec 18, 2020

The vector layer method seems to work for a second but then the basemap disappears and the console shows an error that i need to provide a token

I think this is the same issue that’s reported here: https://github.com/Esri/esri-leaflet-vector/issues/61

Try changing your script tag from

<script src="https://unpkg.com/mapbox-gl/dist/mapbox-gl.js"></script>

to

<script src="https://unpkg.com/mapbox-gl@1.13.0/dist/mapbox-gl.js"></script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

L.esri.BasemapLayer (Deprecated) - ArcGIS Developers
L.esri.BasemapLayer (Deprecated) ... L.esri.basemapLayer is used to display classic raster tiled Esri hosted basemaps and attributes data providers appropriately.
Read more >
Time to Upgrade to the New ArcGIS Basemap Layer Service!
Open source developers: Time to upgrade to the new ArcGIS basemap layer service! If you have built a mapping application with an open...
Read more >
Error: Basemap is not available. Displaying the default ...
In ArcGIS Online, opening a web map returns the following error: Error: Basemap is not available. Displaying the default basemap instead.
Read more >
Bug: Basemap layer is not added to map when using the Add ...
When adding a basemap layer using the Add Basemap dialog from the Add Data menu, the basemap layer is not succesfully added to...
Read more >
Problem: Unable to load the ArcGIS Online basemap gallery
Description. When clicking the Basemap button in the ArcGIS Online map viewer, the full Esri basemap gallery fails to display. Cause.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found