Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

enhancement - Heatmap overlays #6304

Closed
johndpope opened this issue Sep 10, 2016 · 3 comments
Closed

enhancement - Heatmap overlays #6304

johndpope opened this issue Sep 10, 2016 · 3 comments

Comments

@johndpope
Copy link

johndpope commented Sep 10, 2016

Are there any plans to extend gl-native to support heatmap overlays?

#2167
#3420

There are different sdks to support mapkit / google maps - but it doesn't look like the native mapbox sdk can currently support this.
https://github.com/ryanolsonk/HeatMapDemo

@1ec5
Copy link
Contributor

1ec5 commented Sep 10, 2016

Yes, Android SDK 4.2.0 (in beta) and iOS SDK 3.4.0 (in alpha) do support faux heatmaps using circles, but using a clustered GeoJSON source and circle layers rather than the MGLCircle class proposed in #2167.

The Android demo application has a a heatmap activity that demonstrates how to do this. We don’t have an example ready for iOS yet, but the relevant classes are MGLGeoJSONSource and MGLCircleStyleLayer, and you may be able to follow the Android and GL JS examples to some extent.

@1ec5
Copy link
Contributor

1ec5 commented Sep 21, 2016

In case the faux heat map solution I mentioned above (which I’ve since learned is called a “hot spot map”) doesn’t meet your needs, I’ve filed mapbox/DEPRECATED-mapbox-gl#27 for adding support for real heat maps.

@johndpope
Copy link
Author

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants