Open suny123 opened 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
| 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' });
and my htm l part is