2020年1月8日

Swift google map InfoWindow Open


        let marker = GMSMarker()

        marker.position = CLLocationCoordinate2D(latitude: 23.963, longitude: 120.522)

        marker.title = "所在區域"

        marker.isDraggable = true

        marker.snippet = "X:23.963 \n Y:120.522"

        marker.tracksInfoWindowChanges = true

        marker.map = googleMapView

        googleMapView.selectedMarker = marker //InfoWindow Open

沒有留言:

張貼留言