Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49190

Google maps ui-gmap-marker with ionic

$
0
0

@dblanco wrote:

I have a google map using google maps api, with a marker. In the web version it is correct, closes or opens the information window by clicking.

But the android app, only show. Clik does not respond to the window to see information. This missing something?

            <ui-gmap-google-map center='mapa.center' options="mapa.opciones" zoom='mapa.zoom'>
                <ui-gmap-marker coords="marker_club.coords"
                                options="marker_club.options"
                                idkey="marker_club.id"
                                click="markerClick" >
                      <ui-gmap-window show="marker_club.show"
                          closeClick="markerClose(marker)">
                        <div>{{club}}<br />Sede {{sede}}</div>
                    </ui-gmap-windows>
                </ui-gmap-marker>
            </ui-gmap-google-map>

Marker:
$scope.marker_club = { id: 1,
coords: { latitude: latitud, longitude: longitud},
options:{
draggable: false,
icon: new google.maps.MarkerImage(icon),
},
};

$scope.markerClick = function(marker, eventName, model) {
    $scope.marker_club.show = !$scope.marker_club.show;
};

$scope.markerClose = function(marker) {
   $scope.marker_club.show = false;
};

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>