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.

Switching between basemaps providers produces static maps without basemaps

See original GitHub issue

Context

When using the Image Export feature, we’ve seen that switching from a Google Maps basemap to another one from a different provider (Positron, for instance) produces images with just the geometries and no basemaps.

On a first analysis, it seems that is a problem with the map instantiation (it doesn’t occur when switching the basemaps).

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue

  1. Enable the static-maps feature flag.
  2. Create a map with a Google Maps basemap.
  3. Export an image.
  4. Change the basemap (to Positron, for example)
  5. Export an image again.

Current Result

The first image is exported with the Google Maps basemap, but the second doesn’t have any.

Expected result

Both images should have basemaps.

Browser and version

Any browser and version.

cc: @xavijam @alonsogarciapablo @rochoa @noguerol

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
xavijamcommented, Apr 4, 2017

Taking a look right now.

0reactions
xavijamcommented, Apr 6, 2017

Finally decided with @javisantana to fix it in an easy way due to it is a specific case (change from one provider to another only happens in Builder). We will spend time in https://github.com/CartoDB/cartodb/issues/8906 in the near future 🎱 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternative basemaps for leaflet - GIS Stack Exchange
So when I started, I used a standard map from OpenStreetMaps, using the following code: var map = L.map('map').setView([50, 9] ...
Read more >
Basemaps—ArcGIS Pro | Documentation
Basemaps are authoritative maps that are assembled and curated by Esri. Both vector and imagery-based basemap content are updated approximately every three ...
Read more >
Free base-maps for static maps using Geopandas and ...
In this quick tutorial, I am going to show you how to use contextily along with Geopandas in Jupyter Notebook to produce some...
Read more >
QuickMapServices: easy basemaps in QGIS - NextGIS
Desktop GIS have different tools for adding basemaps. QGIS, for example, has its own providers and 3rd-party plugins to access those services.
Read more >
6 leaflet | Making Maps with R - Bookdown
First we create our basemap with leaflet() and add different provider tiles and a layers control so that users can switch between the...
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