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.

Decide what to do with static map previews when user reaches its limits

See original GitHub issue

As we discussed, we decided to better render the Limits “error” tiles in the Frontend side instead of letting them come from the Maps API. That’s great, but it opens a problem for the Static Maps API. For example, in the dashboard we render the maps previews, and if there is a problem we could render any error tile and done. But what about public pages? We just render an png, for example:

https://cartocdn-ashbu.global.ssl.fastly.net/xavijam/api/v1/map/static/named/tpl_93f4baea_9ec3_11e6_b132_0ef24382571b/1200/630.png

From: https://team.carto.com/u/xavijam/builder/93f4baea-9ec3-11e6-b132-0ef24382571b/embed

<meta property="og:image" content="https://cartocdn-ashbu.global.ssl.fastly.net/xavijam/api/v1/map/static/named/tpl_93f4baea_9ec3_11e6_b132_0ef24382571b/1200/630.png">

Places where it is being used:

  • Dashboard map previews.
  • Public pages, where it is being requested for generating link previews.
  • Export image.

@CartoDB/engine

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rubenmoyacommented, Nov 6, 2017

Since we’re going back to the backend rendering the limit error tiles I don’t think this is needed anymore so closing it!

0reactions
noguerolcommented, Sep 25, 2017

@CartoDB/design any concerns for the dashboard previews? The other two cases are already covered, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Static Map API - Exceed usage limit detection
According to the documentation requesting a map from Google (via the Static Map API) when you have exceeded the usage limit displays an...
Read more >
Get Started | Maps Static API - Google Developers
When developing for mobile devices, you can use the API's scale parameter to return higher-resolution map images that solve the issues above. The...
Read more >
Static Images | API - Mapbox docs
The Mapbox Static Images API returns static images generated from vector map styles.
Read more >
Get a Static Map - Bing Maps | Microsoft Learn
Static map metadata: To get the size and center point of the image and the locations and size of the pushpins on the...
Read more >
10 tools to create interactive maps - Shorthand
You can also use their Route and Clip features to draw along roads and boundaries. You can also add photos, links, and videos...
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