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.

Implement API to generate map image

See original GitHub issue

Currently the logic of generate a image of the map is packaged inside kepler. and it’s not easy to access via dependency injection. We can design a action / callback API to allow user to dispatch action and pass a call back to save the generated map image, Something like this:

import {generateMapImage} from 'kepler.gl/actions';
// dispatch an action to retrieve map thumbnail upon user interaction, pass dimension and onUpdate callback
onClick() {
   this.props.dispatch(generateMapImage({
          dmension: {width: 500, height: 500, resolution: 2},
          onUpdate: (dataUrl) => this.props.saveCurrentMapImage(dataUrl)
   )
}

https://github.com/keplergl/kepler.gl/issues/974

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mayteiocommented, May 8, 2020

Any movement here? Can you outline what needs to be done and I can have a crack at it?

0reactions
ejrtncommented, Oct 6, 2021

Uncaught (in promise) TypeError: Object(…) is not a function

에러가 납니다 코드를 자세히 알려 주실 수 있으세요?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Started | Maps Static API - Google Developers
The Maps Static API returns an image (either GIF, PNG or JPEG) in response to an HTTP request via a URL. For each...
Read more >
Get static image from Google map for given area
In my case, I need an image that fits a given area taking as input the NW (top-left) and SE (bottom right) coordinates...
Read more >
Render - Get Map Image - REST API (Azure Maps)
The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported...
Read more >
Use the Google Maps API to build a custom map with markers
In this video we'll be building a custom styled Google map with multiple custom markers, using the Google Maps JavaScript API.
Read more >
Static Images | API - Mapbox docs
The Mapbox Static Images API serves standalone, static map images generated from Mapbox Studio styles. These images can be displayed on web and...
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