mapbox / mapbox/mapbox-maps-flutter
MapboxMap.style.getSource(id) returns null
@yunikkk arbeitet bereits daran.
Seit 02.3.2023.
- Vorherrschende Sprache
- Dart
- Sterne
- 380
- Forks
- 204
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Why is this printing null to the console?
```
await mapboxMap?.style.addStyleSource(
"chargers",
json.encode({
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"id": "39169",
"type": "Feature",
"properties": {
"fastCharger": false,
"powerKW": "22 KW",
"name": "Rathaus Altona"
},
"geometry": {
"type": "Point",
"coordinates": [9.93550387483399, 53.5464387674623]
}
},
]
},
"cluster": true,
"clusterMaxZoom": 14,
"clusterRadius": 50
}));
final GeoJsonSource source =
await mapboxMap.?.style.getSource("chargers") as GeoJsonSource;
print(await source.data); ==> null
```
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.