angularjs – Angular-google-map界限示例
发布时间:2020-12-17 07:23:17 所属栏目:安全 来源:网络整理
导读:没弄明白怎么做. 我有一堆标记,我手动计算东北和西南点.但它看起来没有效果; (期待一个如何使用边界的例子.谢谢. HTML: google-map center="map.center" zoom="map.zoom" pan="true" draggable="true" bounds="maps.bounds" JS: $scope.map = { // http://
没弄明白怎么做.
我有一堆标记,我手动计算东北和西南点.但它看起来没有效果; (期待一个如何使用边界的例子.谢谢. 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();
我认为问题可能是变焦. 从逻辑上讲,缩放概念不会与边界相关,因为边界定义了缩放.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |