Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在带有角度传单的地图上调用 fitbounds?我在某个帖子中看到了寻找地图绑定事件的帖子,但找不到任何示例代码。
尝试使用
angular.module('myModule').controller('MapController', ['$scope', 'leafletData', function($scope, leafletData) { leafletData.getMap().then(function(map) { map.fitBounds(bounds); }); } ]);
并查看 Angular 中动态更改的传单地图边界?