mapbox / mapbox/mapbox-maps-flutter
Problem with HeatmapLayer color parameter
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
The colour value set to the parameter heatmapColor in HeatmapLayer is making all the map covered with a solid colour, screenshot attached.
await mapboxMap.style.addSource(GeoJsonSource(id: 'heatmap', data: "https://www.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson"));
await mapboxMap.style.addLayer(
HeatmapLayer(
id: 'heatmap_layer',
sourceId: 'heatmap',
// visibility: Visibility.NONE,
minZoom: 1.0,
maxZoom: 20.0,
heatmapColor: 0xffFf000d,
heatmapIntensity: 0.4,
heatmapOpacity: 0.4,
heatmapRadius: 0.2,
heatmapWeight: 0.4,
),
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the provided mapboxMap.style source and HeatmapLayer snippet, focusing on the heatmapColor parameter. Compare the rendered result with the expected heatmap appearance and verify the behavior across the shown intensity, opacity, radius, and weight values. Done means the configured color no longer renders the entire map as a solid color.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100