Bug fix: polygon.setHoles() does not work
MODIFY
www/Polygon.js
www/Polygon.js
@@ -165,13 +165,10 @@ Polygon.prototype.setHoles = function(holes) {
}
holes.forEach(function(hole) {
if (!utils.isArray(hole)) {
- return [];
+ hole = [hole];
}
- hole.forEach(function(latLng) {
- mvcArray.push(common.getLatLng(latLng));
+ mvcArray.push(hole);
});
- });
- //this.set('holes', holes);
return this;
};
Polygon.prototype.getHoles = function() {

Bug fix: polygon.setHoles() does not work