@@ -3,7 +3,7 @@ import { ActionValue, ValueStatus, Option } from "mendix";
33import { Icon } from "mendix/components/native/Icon" ;
44import { Component , createElement , createRef } from "react" ;
55import { ActivityIndicator , Platform , View } from "react-native" ;
6- import MapView , { LatLng , Marker as MarkerView } from "react-native-maps" ;
6+ import MapView , { Callout , LatLng , Marker as MarkerView } from "react-native-maps" ;
77import { Big } from "big.js" ;
88
99import { DefaultZoomLevelEnum , DynamicMarkersType , MapsProps , MarkersType } from "../typings/MapsProps" ;
@@ -75,7 +75,7 @@ export class Maps extends Component<Props, State> {
7575 { this . state . status !== Status . LoadingMarkers ? (
7676 < MapView
7777 ref = { this . mapViewRef }
78- provider = { this . props . provider === "default" ? null : this . props . provider }
78+ provider = { this . props . provider === "default" ? undefined : this . props . provider }
7979 mapType = { this . props . mapType }
8080 showsUserLocation = { this . props . showsUserLocation }
8181 showsMyLocationButton = { this . props . showsUserLocation }
@@ -107,6 +107,7 @@ export class Maps extends Component<Props, State> {
107107 }
108108
109109 private renderMarker ( { key, props, coordinate } : Marker ) : JSX . Element {
110+ const isFilled = props . description || props . title ;
110111 return (
111112 < MarkerView
112113 key = { key }
@@ -117,6 +118,7 @@ export class Maps extends Component<Props, State> {
117118 pinColor = { props . iconColor || this . styles . marker . color }
118119 opacity = { this . styles . marker . opacity }
119120 >
121+ { isFilled ? null : < Callout tooltip /> }
120122 { props . icon && (
121123 < Icon icon = { props . icon } color = { props . iconColor || this . styles . marker . color } size = { props . iconSize } />
122124 ) }
0 commit comments