google-maps-markers

How to deselect a GMSMarker after removing custom infowindow in google maps swift

做~自己de王妃 提交于 2021-01-28 06:20:24
问题 So I have been using Google Maps iOS SDK 4.0.0 and my requirement is like this when I tap on a marker it should add UIViewContoller's view which I easily achieved. Take a look on the following code: var customeVC:CustomViewController? func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool { customeVC = CustomViewController(nibName: "CustomViewController", bundle: nil) customeVC?.delegate = self self.addChild(customeVC!) customeVC?.view.frame = self.view.frame self.view

Why I need to tap twice a GMSMarker when it is overlapping a GMSOverlay to show its info window?

佐手、 提交于 2021-01-28 04:43:06
问题 I have an GMSOverlay in a GMSMapView, so I listen to taps into it with the method: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { // Overlay was tapped } Then I want a GMSMarker to be painted over the GMSOverlay, and I listen to taps into it with the method: func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool { // Marker was tapped return false } Every time the listener of the marker is called, its info window hides (if it's shown) or shows (if it's hidden

external link to google map marker

本秂侑毒 提交于 2021-01-27 20:15:22
问题 I'm trying to make an external link that pulls up the info bubble of a marker and centers it. I wanted to do it by referencing a div ID that I called clickaway, this is what I set up but can't seem to get it working: <script> function initialize() { var myLatlng = new google.maps.LatLng(-25.363882,131.044922); var mapOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); var