-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Dynamic map lib config #2678
Conversation
heshan0131
commented
Oct 7, 2024
- Support dynamic map lib
✅ Deploy Preview for keplergl2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. It would be really cool to support multiple basemaps, giving the user a choice, with little cost as they are dynamically loaded.
@@ -5,7 +5,7 @@ import React, {Component} from 'react'; | |||
import {polyfill} from 'react-lifecycles-compat'; | |||
import classnames from 'classnames'; | |||
import styled from 'styled-components'; | |||
import MapGLMap, {MapRef} from 'react-map-gl/maplibre'; | |||
import {Map, MapboxMap, MapRef} from 'react-map-gl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, @Pessimistress is separating maplibre into a new repo (since the APIs have forked), so there will be two dependencies down the road and we may need to build a higher level map lib abstraction.
f4a952e
to
767d322
Compare
* Dynamic map lib * Type fixes Signed-off-by: Shan He <heshan0131@gmail.com>
Signed-off-by: Shan He <heshan0131@gmail.com>
4d83c06
to
3b828cf
Compare