-
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
Allow loading base map tiles from a custom tile server #406
Comments
I could probably implement this, however I need Kepler to show custom tiles in addition to the standard base map. My use case is to show (1) an already available base map such as Mapbox Muted Night and (2) map tiles from a custom tile server layered on top. The custom tiles aren't really a "base map". They are reference layers such as electric power lines, transformers, and poles. If I issue a PR for this feature, I would like to include custom tile server support plus whatever UI is needed to toggle visibility of the custom tiles independent of the base map. Thoughts? |
Sounds good. Before implementation, we usually write an RFC (Request For Comment), stating implementation details so that people have an idea of the related engineering details. You can append the RFC by replying in this thread |
Could this be generalised further so that the UI can be used to swap out the base map completely? I.e Mapbox Muted Night is the default but you can add other basemaps (from custom tile servers) with the option of toggling visibility on any of those basemap layers (including the default). |
My use case is nearly identical to @robert-claypool's. I would need the ability to add several tile layers on top of the base layer. I am currently using TileServer GL, incase that information helps. |
if you are using kepler.gl in your own app, kepler.gl actually supports custom vector map tiles under-the-hood. As long as your map styles is using Mapbox GL Style Specification To do that, pass in
|
However, if you want to add custom map tiles through an UI in the kepler.gl app, you are right, we need to modify the currently add custom map popup ui a little bit to allow adding custom vector tiles |
Finally, I think I have bandwidth to tackle this. @heshan0131, my main goal is to see multiple Mapbox Styles and control the order they are rendered -- e.g. 'Water Utility Assets' need to show on top of 'Muted Night'. Here's a mockup.
I've started digging into code to see what I'm up against. It doesn't look easy! The structure of |
@heshan0131 @macrigiuseppe I will start work on this Monday to meet an internal deadline. Would like to hear your feedback. |
Hi everyone, Thanks. |
@ricardoekm priorities changed for my team. I will probably not finish this one. |
map i have a question from this one ? i am looking fro this from 2 days thanks alot for this one ... .. map my question is i want to use my own map layer in kepler . its working fine when i do this with keppler pannel but i don't want to show keppler pannel so i want to use map styles through code how can i do that |
This is already possible. I tried it out on the public kepler.gl demo instance; at Base Map > Add Map Style > Paste Style Url, you can just paste a URL to a I pasted a URL to a custom OpenMapTiles-derived base map of mine, and it switched to it as the basemap. That said, it looks like for some reason kepler.gl doesn't support the entire Mapbox GL style spec? When trying to load
as the basemap, I get console errors like
However the source > gl-style-validate style.json
# No errors |
Hello any news on this. as @kylebarron said it might be possible to pass |
Allow a user to upload a Mapbox style J (with links to custom tile server)
Dynamically request tile-based data
The text was updated successfully, but these errors were encountered: