Skip to content
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

Heatmap example #5425

Merged
merged 7 commits into from
Oct 9, 2017
Merged

Heatmap example #5425

merged 7 commits into from
Oct 9, 2017

Conversation

ryanbaumann
Copy link
Contributor

@ryanbaumann ryanbaumann commented Oct 8, 2017

Launch Checklist

  • briefly describe the changes in this PR
  • Lint docs
  • Check that comments for heatmap layer types are clear and accurate
  • PR Review @mourner @anandthakker

Closes #5420

PR Changes

  • Remove deprecated contains expression type from doc generation.
  • Add heatmap example for new heatmap layer type
  • Remove existing example for heatmaps using legacy styled circle layers
  • Update example earthquakes.geojson file with new metadata from USGS website

image 2017-10-07 at 6 34 03 pm

//Color ramp for heatmap. Domain is 0 (low) to 1 (high)
"heatmap-color": {
"stops": [
[0, "#2166ac"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a 0-alpha stop a 0. E.g. we can try #2166ac00

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mourner updated the ramp to start with transparency zero.

Copy link
Contributor

@anandthakker anandthakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 !

@ryanbaumann ryanbaumann merged commit 9a2a090 into master Oct 9, 2017
@ryanbaumann ryanbaumann deleted the heatmap-example branch October 9, 2017 13:00
@songololo
Copy link

I'm looking around Mapbox Studio and it doesn't appear that studio supports heatmaps yet? Is this correct? Thanks.

@ryanbaumann
Copy link
Contributor Author

@Shongololo correct, heatmaps are only in the latest release of GL JS v0.41.0 so far. More to come!

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

Successfully merging this pull request may close these issues.

4 participants