Closed eeschiavo closed 2 years ago
Which version of the plugin are you using? You seem to be using methods that do not exist (at least not in the current version). setOnMarkerClickListener
does not exist. You are probably looking for this method instead.
Also the following piece of code:
GoogleMap.create({
id: 'id-map',
element: this.mapRef.nativeElement,
apiKey: environment.googleApiKey,
config: {
center: {
lat: this.coordinates.lat,
lng: this.coordinates.lng,
},
zoom: 10
}
})
is not according to the API reference in the documentation.
Please make sure you are reading the documentation and following all the steps.
I was completely wrong, I actually confused the @capacitor/google-maps
plugin with @capacitor-community/google-maps
. I apologize.
Describe the bug The Info Window not appearing when tapping on marker.
To Reproduce Create a list of markers like:
This will output:
Expected behavior Tapping on marker nothing happen. Info Window should appear showing title and snippet.
Screenshots Example
Additional context Full code map init:
The app is Angular based.