iOS Cloud based Dark style still shows default point of interest even I turn them off on Google Map Style Dashboard
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- ios, react-native, typescript
- Bereich
- mobile
Rechercherichtung
Start with the reproducible TSX sample and compare the iOS Google Maps behavior in dark and light modes using the same googleMapId and visibility props. Trace how googleMapId, userInterfaceStyle, and showsPointsOfInterests are handled on iOS, then verify that cloud styling hides points of interest in dark mode as it does in light mode.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
I see an issue on iOS that if I use cloud based style and use userInterfaceStyle='dark' , I will see other default point of interest, buildings, ... will show on the map even though I turn them all off on the Google Map DashBoard.
The weird thing here is for the light mode, it's still working as expected.
On Android it's working for both dark and light mode, it doesn't show point of interest.
Reproducible sample code
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import { StatusBar, StyleSheet, useColorScheme, View } from 'react-native';
import MapView, { PROVIDER_GOOGLE } from 'react-native-maps';
import { SafeAreaProvider } from 'react-native-safe-area-context';
function App() {
const isDarkMode = useColorScheme() === 'dark';
return (
<SafeAreaProvider>
<StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
<AppContent />
</SafeAreaProvider>
);
}
export const DEFAULT_LAT = 40.75277915512556;
export const DEFAULT_LON = -73.97721473197156;
function AppContent() {
return (
<View style={styles.container}>
<MapView
provider={PROVIDER_GOOGLE} // remove if not using Google Maps
paddingAdjustmentBehavior="never"
googleMapId="<google-map-id-here>"
style={[styles.map]}
rotateEnabled={false}
pitchEnabled={false}
toolbarEnabled={false}
showsBuildings={false}
showsIndoors={false}
showsPointsOfInterests={false}
showsIndoorLevelPicker={false}
showsCompass={false}
showsScale={false}
showsTraffic={false}
showsUserLocation={true}
showsMyLocationButton={false}
moveOnMarkerPress={false}
userInterfaceStyle="dark"
camera={{
zoom: 16,
center: {
latitude: DEFAULT_LAT,
longitude: DEFAULT_LON,
},
heading: 0,
pitch: 0,
}}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
map: {
...StyleSheet.absoluteFill,
},
});
export default App;
Steps to reproduce
- Create a map id and select iOS type
- Create a custom style on Google Management and turn off all point of interest
- Copy the googleMapId and use in app
- Set 'dark' for userInterfaceStyle
- Observe the result.
Expected result
Should hide all the default point of interest on the map like Light mode:
Actual result
It's showing all default point of interests.
React Native Maps Version
1.27.2
What platforms are you seeing the problem on?
iOS (Google Maps)
React Native Version
0.84.1
What version of Expo are you using?
Not using Expo
Device(s)
iOS devices
Additional information
Please let me know if I can provide any further informations
- Vorherrschende Sprache
- TypeScript
- Sterne
- 16k
- Forks
- 5k
- Ø Merge
- 1 T. 4 Std.
- Gemergte PRs (30 T.)
- 4
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 react-native-maps/react-native-maps
-
[Android] onMarkerClick calls showInfoWindow() on markers that have no info window, raising them above every zIndexEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
react-native-maps/react-native-maps#6006 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
react-native-maps/react-native-maps#6005 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
react-native-maps/react-native-maps#6003 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
onPress/onLongPress `position` is in device pixels on Android, points on iOSEvtl. vergeben @ivan-kolesov hat das vor 30 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
react-native-maps/react-native-maps#5998 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Fabric: ReactViewGroup cannot be cast to MapMarker in MarkerManager.onLayoutChange (leaked layout listener on recycled views)Evtl. vergeben @huytdps13400 hat das vor 43 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
react-native-maps/react-native-maps#5987 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in react-native-maps/react-native-maps
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
microsoft/playwright#43327 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/TypeScript#64758 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Liveness marks block-included attesters live in the block's epoch instead of the attestation's epochOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
status: needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
a2ui-project/a2ui#3158 ·
Maintainer antworten meist innerhalb von 2 Tagen