allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 516 forks source link

ng-mpa not load #824

Open suny123 opened 7 years ago

suny123 commented 7 years ago

| I'm using ng-map for viewing map data in my applictaioni initialized the map following way

function initializeMap() { NgMap.getMap({ id: 'dashboardMap' }).then(function (map) { $scope.map = map; if ($('#info').length > 0) { $scope.map.hideInfoWindow('info'); } var styledMapType = new google.maps.StyledMapType( [ { "elementType": "geometry.fill", "stylers": [ { "saturation": -20 } ] } ], { name: 'Styled Map' });

        $scope.map.mapTypes.set('styled_map', styledMapType);
        $scope.map.setMapTypeId('styled_map');
    });
}

$timeout(function () {
    initializeMap();
}, 200);

and my htm l part is

suny123 commented 7 years ago