我可以使用Google Draw管理器绘制多个多边形.现在我无法从多个多边形中选择特定的多边形并删除和编辑它.编辑或删除后也无法获取新数组.
我的demo.js代码如下:
$scope.map = {
center: { latitude: 19.997454, longitude: 73.789803 },
zoom: 10,
//mapTypeId: google.maps.MapTypeId.ROADMAP,
//radius: 15000,
stroke: {
color: '#08B21F',
weight: 2,
opacity: 1
},
fill: {
color: '#08B21F',
opacity: 0.5
},
geodesic: true, // optional: defaults to false
draggable: false, // optional: defaults to false
clickable: false, // optional: defaults to true
editable: false, // optional: defaults to false
visible: true, // optional: defaults to true
control: {},
refresh: "refreshMap",
options: { scrollwheel: true },
Polygon: …Run Code Online (Sandbox Code Playgroud) javascript google-maps angularjs angular-ui-router angular-google-maps