geojs 1.10.6 → 1.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/geo.js +12 -13
- package/geo.lean.js +12 -13
- package/geo.lean.min.js +2 -2
- package/geo.min.js +2 -2
- package/package.json +1 -1
- package/src/annotation/annotation.js +1 -2
- package/src/annotation/rectangleAnnotation.js +0 -1
- package/src/polygonFeature.js +7 -2
package/package.json
CHANGED
|
@@ -1271,8 +1271,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
|
|
|
1271
1271
|
action: geo_action['annotation_' + name],
|
|
1272
1272
|
name: name + ' create',
|
|
1273
1273
|
owner: annotationActionOwner,
|
|
1274
|
-
input: 'left'
|
|
1275
|
-
modifiers: {shift: false, ctrl: false}
|
|
1274
|
+
input: 'left'
|
|
1276
1275
|
}, {
|
|
1277
1276
|
action: geo_action['annotation_' + name],
|
|
1278
1277
|
name: name + ' create',
|
|
@@ -75,7 +75,6 @@ var rectangleAnnotation = function (args, annotationName) {
|
|
|
75
75
|
name: 'rectangle create',
|
|
76
76
|
owner: annotationActionOwner,
|
|
77
77
|
input: 'left',
|
|
78
|
-
modifiers: {shift: false, ctrl: false},
|
|
79
78
|
selectionRectangle: true,
|
|
80
79
|
selectionConstraint: this._selectionConstraint
|
|
81
80
|
}];
|
package/src/polygonFeature.js
CHANGED
|
@@ -573,9 +573,11 @@ var polygonFeature = function (arg) {
|
|
|
573
573
|
* get the position of each vertex.
|
|
574
574
|
* @param {function} [polyFunc=this.style.get('polygon')] The function to
|
|
575
575
|
* get each polygon.
|
|
576
|
-
* @
|
|
576
|
+
* @param {boolean} [returnData=false] If truthy, return the new data array
|
|
577
|
+
* rather than modifying the feature.
|
|
578
|
+
* @returns {this|array}
|
|
577
579
|
*/
|
|
578
|
-
this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc) {
|
|
580
|
+
this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc, returnData) {
|
|
579
581
|
var map = m_this.layer().map(),
|
|
580
582
|
mapgcs = map.gcs(),
|
|
581
583
|
featuregcs = m_this.gcs(),
|
|
@@ -633,6 +635,9 @@ var polygonFeature = function (arg) {
|
|
|
633
635
|
}
|
|
634
636
|
return elem;
|
|
635
637
|
});
|
|
638
|
+
if (returnData) {
|
|
639
|
+
return data;
|
|
640
|
+
}
|
|
636
641
|
|
|
637
642
|
/* Set the reduced polgons as the data and use simple accessors. */
|
|
638
643
|
m_this.style('position', util.identityFunction);
|