capacitor-plugins
capacitor-plugins copied to clipboard
capacitor/google-maps: Variable to disable mobile popup when user click on marker
Feature Request
Plugin
@capacitor/google-maps
Description
To allow the removal of the popup that appears when the user clicks on a marker in the Android platform (I haven't tested iOS yet, so I don't know if it's the same there) through a map option.
Platform(s)
Android iOS (?)
Preferred Solution
A boolean variable, for example called "disableMarkerPopup" that should be passed to Googlemap.create
this.map = await GoogleMap.create({
id: 'map',
element: mapRef, // reference to the capacitor-google-map element
apiKey: process.env.GOOGLE_MAPS_API_KEY, // Your Google Maps API Key
....
**disableMarkerPopup: true**
.....
config: {
.....
},
});
It would be cool to have this option also per marker, e.g.:
this.map.addMarker({ ..., enableMarkerPopup: false })
@heykanna I've solved removing the attributes title and snippet when I declare my marker.
It would be still somehow nice to be able to use the title attribute without having a popup
any way to hide the title when clicking on marker ?