Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JEricaM opened this issue Sep 5, 2023 · 4 comments

Comments

@JEricaM
Copy link

JEricaM commented Sep 5, 2023

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

@heykanna
Copy link

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

@JEricaM
Copy link
Author

JEricaM commented Oct 6, 2023

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

@ngmiduc
Copy link

ngmiduc commented Dec 14, 2023

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

@abdulrahmanMah
Copy link

any way to hide the title when clicking on marker ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants