capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

capacitor/google-maps: Variable to disable mobile popup when user click on marker

Open JEricaM opened this issue 2 years ago • 4 comments

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: {
                .....
            },
        });

JEricaM avatar Sep 05 '23 14:09 JEricaM

It would be cool to have this option also per marker, e.g.: this.map.addMarker({ ..., enableMarkerPopup: false })

heykanna avatar Sep 25 '23 11:09 heykanna

@heykanna I've solved removing the attributes title and snippet when I declare my marker.

JEricaM avatar Oct 06 '23 14:10 JEricaM

It would be still somehow nice to be able to use the title attribute without having a popup

ngmiduc avatar Dec 14 '23 21:12 ngmiduc

any way to hide the title when clicking on marker ?

abdulrahmanMah avatar May 31 '24 11:05 abdulrahmanMah