[iOS/Android] Mapbox Standard sea/ocean labels are missing while Standard Satellite works
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Beginne mit der minimalen Android-Reproduktion im Issue und vergleiche die offiziellen Styles Standard und Standard Satellite bei der angegebenen Kamera. Untersuche die Wasserbeschriftungsebenen, insbesondere den auf measure-light und colorWater basierenden Standard-Ausdruck für text-color, und überprüfe das Verhalten auch unter iOS. Als erledigt gilt die Aufgabe, wenn Standard die erwarteten Orts- und Meeresbeschriftungen konsistent mit Mapbox Studio und Standard Satellite rendert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Sea and ocean labels are missing from a custom Mapbox Standard-based style in the same Flutter app on both iOS and Android. Country and city labels still render, but labels such as “Balearic Sea” and “Mediterranean Sea” do not. The labels are visible in Mapbox Studio at the same camera.
Switching to Standard Satellite makes the sea labels appear. I also isolated the problem on Android with an official-style minimal reproduction: mapbox://styles/mapbox/standard renders no text labels, while changing only the style URI to mapbox://styles/mapbox/standard-satellite renders place labels and the two sea labels at the exact same camera.
Environment
- Affected platforms in the Flutter app: iOS and Android
mapbox_maps_flutter: 2.29.1- Mapbox Maps Core Android: 11.29.1
- Mapbox Common Android: 24.29.1
- Flutter: 3.41.5 (stable)
- Dart: 3.11.3
- Android minimal repro: Android 16 / API 36
- Android device: Emulator
sdk_gphone64_x86_64 - Android ABI: x86_64
- Android rendering backend: Impeller OpenGLES
- The iOS symptom has been reproduced in the app, but the exact iOS device/OS details and official-style minimal repro have not yet been collected.
Minimal reproduction
The following minimal reproduction was run on Android:
import 'package:flutter/material.dart';
import 'package:mapbox_maps_flutter/mapbox_maps_flutter.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
MapboxOptions.setAccessToken(
const String.fromEnvironment('MAPBOX_ACCESS_TOKEN'),
);
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: MapWidget(
styleUri: 'mapbox://styles/mapbox/standard',
cameraOptions: CameraOptions(
center: Point(coordinates: Position(3.04309, 38.36985)),
zoom: 5.5,
),
),
),
);
}
}
Run with a valid public access token, then change only styleUri to:
styleUri: 'mapbox://styles/mapbox/standard-satellite',
No custom sources, layers, annotations, localization calls, overlays, or camera changes are involved in the Android minimal reproduction.
Observed behavior
- iOS and Android app, custom Standard-based style: country and city labels render, but sea/ocean labels are missing.
- Android minimal repro, official Standard: no text labels render.
- Android minimal repro, official Standard Satellite: place labels, “Balearic Sea”, and “Mediterranean Sea” render at the same camera.
Expected behavior
Standard should render its water labels consistently with Mapbox Studio and Standard Satellite on both iOS and Android.
Screenshots
Both screenshots were captured from the same Android emulator, with the same SDK version, camera center, zoom, and minimal widget.
Android — Standard (labels missing)
Android — Standard Satellite (labels visible)
Additional investigation
The published Standard and Standard Satellite style JSONs both contain water-line-label and water-point-label layers using the same natural_label source, filters, font, placement, and text field.
A notable difference is their paint expression:
- Standard uses a
text-colorexpression based onmeasure-lightand thecolorWaterconfig. - Standard Satellite uses a simple HSL color.
As an Android diagnostic only, cloning the same natural_label water-label layers into the minimal app with a fixed text-color makes the missing sea labels appear immediately. This suggests the Standard label paint expression may be involved, but I have not proven that as the root cause on either platform.
I could not find an existing open or closed issue matching Standard water labels on iOS or Android.
- Vorherrschende Sprache
- Dart
- Sterne
- 382
- Forks
- 205
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mapbox/mapbox-maps-flutter
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
mapbox/mapbox-maps-flutter#1152 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
mapbox/mapbox-maps-flutter#1150 · 1 Kommentar ·
-
iOS: the map cannot be captured or read by flutter, because it is a platform viewEvtl. vergeben @Nixxx19 hat das vor 92 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
mapbox/mapbox-maps-flutter#1142 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
mapbox/mapbox-maps-flutter#1140 ·
-
Normalize ornament positioning relative to safe areas on iOS and AndroidEvtl. wieder frei @maios hat das vor 136 Tagen übernommen, und es ist kein Pull Request offen. Offen
mapbox/mapbox-maps-flutter#1137 · 1 Kommentar · 1 Reaktion · 1 zugewiesene Person ·
Alle Issues in mapbox/mapbox-maps-flutter
Ähnliche Issues
-
消费码加载时间太长Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
HeZeBang/TechPie-flutter#294 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
ccch1mneyyy/dsh-Go#2192 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
hiddify/hiddify-app#2724 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Submit: CasamaOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100