You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The map and the marker are visible without a "dark cover", like in iOS example.
Actual Behavior
In Android emulator (but I think also on physical device) there is a "dark cover" over the map and markers.
Sometimes the marker is completely black (when I change the zoom value).
Screenshots (if applicable)
Version(s) affected
Platform: Android
OS version: Android API Level 33
Device type: Pixel 7
Emulator/ Simulator: Yes
Development OS: Sonoma 14.4.1
maplibre-react-native Version 10.0.0-alpha.4
React Native Version 0.74.1
Code (App.tsx)
importReact,{Component}from'react';import{StyleSheet,View}from'react-native';importMapLibreGLfrom'@maplibre/maplibre-react-native';// Will be null for most users (only Mapbox authenticates this way).// Required on Android. See Android installation notes.MapLibreGL.setAccessToken(null);conststyles=StyleSheet.create({page: {flex: 1,justifyContent: 'center',alignItems: 'center',backgroundColor: '#F5FCFF',},map: {flex: 1,alignSelf: 'stretch',},});exportdefaultclassAppextendsComponent{getFeatures=()=>{return{type: 'FeatureCollection',features: [{"geometry": {"coordinates": [12.332746,42.90333],"type": "Point"},"properties": {"alt": "","angle": 0,"className": "","cursor": "inherit","data": {},"draggable": false,"html": "","iconOffset": [-0,-20],"iconPosition": [0.5,1],"iconSize": 1.0,"iconUrl": "https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678111-map-marker-60.png","id": "Geometry_0_1715335114733","interactive": true,"label": "","multiplier": 0.2,"opacity": 1,"pointer-events": "visiblePainted","sizeX": 40,"sizeY": 40,"textDesc": "","zIndex": 1},"type": "Feature"}]}}render(){return(<Viewstyle={styles.page}><MapLibreGL.MapViewstyle={styles.map}><MapLibreGL.CameracenterCoordinate={[12.337979838552297,42.90816824005347]}zoomLevel={12}/><MapLibreGL.Imagesimages={{'https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678111-map-marker-60.png': {uri: 'https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678111-map-marker-60.png'}}}><View></View></MapLibreGL.Images><MapLibreGL.ShapeSourceid="shape"lineMetrics={true}shape={this.getFeatures()}><MapLibreGL.SymbolLayerid="symbolPointLayer"style={{iconImage: ["get","iconUrl"],iconSize: ["get","iconSize"],iconAllowOverlap: true,iconOffset: ["get","iconOffset"],iconRotate: ["get","angle"],iconOpacity: ["get","opacity"],}}filter={['has','iconUrl']}/></MapLibreGL.ShapeSource></MapLibreGL.MapView></View>);}}
The text was updated successfully, but these errors were encountered:
Steps to Trigger Behavior
Expected Behavior
The map and the marker are visible without a "dark cover", like in iOS example.
Actual Behavior
In Android emulator (but I think also on physical device) there is a "dark cover" over the map and markers.
Sometimes the marker is completely black (when I change the zoom value).
Screenshots (if applicable)
Version(s) affected
Code (App.tsx)
The text was updated successfully, but these errors were encountered: