【发布时间】:2014-10-14 09:58:34
【问题描述】:
不知道怎么做。 我有一堆标记,我手动计算了东北点和西南点。但看起来没有效果; (期待一个如何使用边界的例子。谢谢。
html:
<google-map center="map.center" zoom="map.zoom" pan="true" draggable="true" bounds="maps.bounds">
js:
$scope.map = {
// http://angular-google-maps.org/use
center: {
latitude: 34.04858,
longitude: -84.29431
},
zoom: 16,
lineStyle: {
color: '#333',
weight: 5,
opacity: 0.7
},
bounds:{}
};
// in another call...............
$scope.map.bounds={
northeast : northeast,
southwest: southwest
}
$scope.$apply();
【问题讨论】:
标签: angularjs google-maps-api-3