mapbox / mapbox/mapbox-maps-flutter
Heatmap Layer works incorrect in mapbox_maps_flutter package
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Dart
- Estrellas
- 380
- Forks
- 204
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I'm trying to add HeatmapLayer using .geojson file and instead of showing heatmap it's just filling in all map with the color that is set as "heatmapColor". However, if I add LineLayer(or any other layer) with same .geojson file it works perfect.
What's wrong with the code below?
final data = await rootBundle.loadString(GeojsonFiles.heatmap);
await _controller?.style
.addSource(GeoJsonSource(id: 'heatmap', data: data));
await _controller?.style.addLayer(
HeatmapLayer(
id: 'heatmap_layer',
sourceId: 'heatmap',
heatmapColor: 0xff00ff00,
heatmapOpacity: 0.2,
),
);
await _controller?.style.addLayer(
LineLayer(
id: 'line_layer',
sourceId: 'heatmap',
lineColor: 0xffff0000,
),
);
I've tried to change properties of HeatmapLayer class, but nothing changed
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el problema con la configuración mostrada de GeoJsonSource, HeatmapLayer y LineLayer en mapbox_maps_flutter, utilizando los datos de GeojsonFiles.heatmap. Compara la representación del mapa de calor con la representación de líneas e inspecciona los requisitos de origen de HeatmapLayer. Se considera terminado cuando el mismo GeoJSON muestra un mapa de calor en lugar de rellenar el mapa con un solo color.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100