2017-04-20 28 views

回答

0

最後,在初始化時調整映射大小來解決此問題。 這是我的代碼。

$scope.$on('mapInitialized', function (event, map) 
{ 
    $timeout(function() { 
     google.maps.event.trigger(map, 'resize'); 
     map.setCenter(newgoogle.maps.LatLng('your latitude','your longitude')); 
    }, 100); 
}); 
相關問題