[iOS/Android] Mapbox Standard sea/ocean labels are missing while Standard Satellite works
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Comece com a reprodução mínima para Android no issue e compare os estilos oficiais Standard e Standard Satellite na câmera indicada. Inspecione as camadas de rótulos de água, especialmente a expressão de text-color do Standard baseada em measure-light e colorWater, e verifique o comportamento também no iOS. Considera-se concluído quando o Standard renderiza de forma consistente os rótulos esperados de lugares e mares com o Mapbox Studio e o Standard Satellite.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Dart
- Estrelas
- 382
- Forks
- 205
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de mapbox/mapbox-maps-flutter
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
mapbox/mapbox-maps-flutter#1152 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
mapbox/mapbox-maps-flutter#1150 · 1 comentário ·
-
iOS: the map cannot be captured or read by flutter, because it is a platform viewTalvez já em andamento @Nixxx19 assumiu há 92 dias. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
mapbox/mapbox-maps-flutter#1142 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
mapbox/mapbox-maps-flutter#1140 ·
-
Normalize ornament positioning relative to safe areas on iOS and AndroidTalvez livre de novo @maios assumiu há 136 dias e não há nenhum pull request aberto. Aberta
mapbox/mapbox-maps-flutter#1137 · 1 comentário · 1 reação · 1 responsável ·
Todas as issues de mapbox/mapbox-maps-flutter
Issues semelhantes
-
消费码加载时间太长Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
HeZeBang/TechPie-flutter#294 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
ccch1mneyyy/dsh-Go#2192 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
hiddify/hiddify-app#2724 ·
Mantenedores costumam responder em até 1 dia
-
Submit: CasamaAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100