Implement API to generate map image
See original GitHub issueCurrently 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)
)
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any movement here? Can you outline what needs to be done and I can have a crack at it?
Uncaught (in promise) TypeError: Object(…) is not a function
에러가 납니다 코드를 자세히 알려 주실 수 있으세요?