angular-ui / ui-map

Google Maps
http://angular-ui.github.io/ui-map
MIT License
288 stars 93 forks source link

Adding support for InfoBubble: a more customizable infowindow. #38

Open Dashue opened 10 years ago

Dashue commented 10 years ago

Tests are broken due to "Infobubble is not defined", please advice how to handle this. Currently doesn't work with "Controller As" syntax, would love to get help to fix this There's a quirk with only the first bubble being hidden on start, hence the need for HasMapMenuBeenOpened

Usage:

Add Location

$scope.OpenMapMenu = function (latLng) { $scope.HasMapMenuBeenOpened = true;

        var marker = new google.maps.Marker({
            map: $scope.MyMap,
            position: latLng,
            icon: '/Content/Images/Markers/Empty.png'
        });

        $scope.MapMenu.open($scope.MyMap, marker);
    };
Dashue commented 10 years ago

ties back to my first attempt a while ago #5