keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.39k stars 1.74k forks source link

How to add a marker in kepler.gl #845

Open yesuanzao opened 4 years ago

yesuanzao commented 4 years ago

I know it is easy in react-map-gl but how should i do it in kepler.gl?

macrigiuseppe commented 4 years ago

@yesuanzao you should be able to achieve the same result using Icon layer: https://github.com/keplergl/kepler.gl/blob/master/docs/user-guides/c-types-of-layers/g-icon.md

yesuanzao commented 4 years ago

@macrigiuseppe I think they are different, otherwise mapbox doesn't need to provide two ways. I think it should be allowed to pass in children to MapComponent. This is the best place to put markers