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59IGZyb20gJy4vdHlwZXMnO1xuXG5leHBvcnQgdHlwZSB7XG4gIFBvc2l0aW9uLFxuICBQb2ludENvb3JkaW5hdGVzLFxuICBMaW5lU3RyaW5nQ29vcmRpbmF0ZXMsXG4gIFBvbHlnb25Db29yZGluYXRlcyxcbiAgTXVsdGlQb2ludENvb3JkaW5hdGVzLFxuICBNdWx0aUxpbmVTdHJpbmdDb29yZGluYXRlcyxcbiAgTXVsdGlQb2x5Z29uQ29vcmRpbmF0ZXMsXG4gIEFueUNvb3JkaW5hdGVzLFxuICBQb2ludCxcbiAgTGluZVN0cmluZyxcbiAgUG9seWdvbixcbiAgTXVsdGlQb2ludCxcbiAgTXVsdGlMaW5lU3RyaW5nLFxuICBNdWx0aVBvbHlnb24sXG4gIEdlb21ldHJ5LFxuICBQb2x5Z29uYWwsXG4gIEJvdW5kaW5nQm94QXJyYXksXG4gIEZlYXR1cmVPZixcbiAgRmVhdHVyZVdpdGhQcm9wcyxcbiAgRmVhdHVyZSxcbiAgRmVhdHVyZUNvbGxlY3Rpb24sXG4gIEFueUdlb0pzb24sXG59IGZyb20gJy4vZ2VvanNvbi10eXBlcyc7XG4iXX0= |
@@ -71,3 +71,6 @@ "use strict"; | ||
var radius = Math.max((0, _distance["default"])(coord1, centerCoordinates), 0.001); | ||
return (0, _circle["default"])(centerCoordinates, radius, options); | ||
var geometry = (0, _circle["default"])(centerCoordinates, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
@@ -80,2 +83,2 @@ }]); | ||
exports.DrawCircleByDiameterMode = DrawCircleByDiameterMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1jaXJjbGUtYnktZGlhbWV0ZXItbW9kZS50cyJdLCJuYW1lcyI6WyJEcmF3Q2lyY2xlQnlEaWFtZXRlck1vZGUiLCJjb29yZ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b29yZDI6IFBvc2l0aW9uLCBtb2RlQ29uZmlnOiBhbnkpOiBGZWF0dXJlT2Y8UG9seWdvbj4ge1xuICAgIC8vIERlZmF1bHQgdHVyZiB2YWx1ZSBmb3IgY2lyY2xlIGlzIDY0XG4gICAgY29uc3QgeyBzdGVwcyA9IDY0IH0gPSBtb2RlQ29uZmlnIHx8IHt9O1xuICAgIGNvbnN0IG9wdGlvbnMgPSB7IHN0ZXBzIH07XG5cbiAgICBpZiAoc3RlcHMgPCA0KSB7XG4gICAgICBjb25zb2xlLndhcm4oYE1pbmltdW0gc3RlcHMgdG8gZHJhdyBhIGNpcmNsZSBpcyA0IGApOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGUsbm8tdW5kZWZcbiAgICAgIG9wdGlvbnMuc3RlcHMgPSA0O1xuICAgIH1cblxuICAgIGNvbnN0IGNlbnRlckNvb3JkaW5hdGVzID0gZ2V0SW50ZXJtZWRpYXRlUG9zaXRpb24oY29vcmQxLCBjb29yZDIpO1xuICAgIGNvbnN0IHJhZGl1cyA9IE1hdGgubWF4KGRpc3RhbmNlKGNvb3JkMSwgY2VudGVyQ29vcmRpbmF0ZXMpLCAwLjAwMSk7XG5cbiAgICBjb25zdCBnZW9tZXRyeSA9IGNpcmNsZShjZW50ZXJDb29yZGluYXRlcywgcmFkaXVzLCBvcHRpb25zKTtcblxuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMgPSBnZW9tZXRyeS5wcm9wZXJ0aWVzIHx8IHt9O1xuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMuc2hhcGUgPSAnQ2lyY2xlJztcblxuICAgIHJldHVybiBnZW9tZXRyeTtcbiAgfVxufVxuIl19 |
@@ -68,3 +68,6 @@ "use strict"; | ||
var radius = Math.max((0, _distance["default"])(coord1, coord2), 0.001); | ||
return (0, _circle["default"])(coord1, radius, options); | ||
var geometry = (0, _circle["default"])(coord1, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
@@ -77,2 +80,2 @@ }]); | ||
exports.DrawCircleFromCenterMode = DrawCircleFromCenterMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1jaXJjbGUtZnJvbS1jZW50ZXItbW9kZS50cyJdLCJuYW1lcyI6WyJEcmF3Q2lyY2xlRnJvbUNlbnRlck1vZGUiLCJjb29yZDEiLCJjb29yZDIiLCJtb2RlQ29uZmlnIiwic3RlcHMiLCJvcHRpb25zIiwiY29uc29sZSIsIndhcm4iLCJyYWRpdXMiLCJNYXRoIiwibWF4IiwiVHdvQ2xpY2tQb2x5Z29uTW9kZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUNBOztBQUVBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVhQSx3Qjs7Ozs7Ozs7Ozs7Ozt1Q0FDUUMsTSxFQUFrQkMsTSxFQUFrQkMsVSxFQUFxQztBQUMxRjtBQUQwRixpQkFFbkVBLFVBQVUsSUFBSSxFQUZxRDtBQUFBLDRCQUVsRkMsS0FGa0Y7QUFBQSxVQUVsRkEsS0FGa0YsMkJBRTFFLEVBRjBFOztBQUcxRixVQUFNQyxPQUFPLEdBQUc7QUFBRUQsUUFBQUEsS0FBSyxFQUFMQTtBQUFGLE9BQWhCOztBQUVBLFVBQUlBLEtBQUssR0FBRyxDQUFaLEVBQWU7QUFDYkUsUUFBQUEsT0FBTyxDQUFDQyxJQUFSLHlDQURhLENBQ3lDOztBQUN0REYsUUFBQUEsT0FBTyxDQUFDRCxLQUFSLEdBQWdCLENBQWhCO0FBQ0Q7O0FBRUQsVUFBTUksTUFBTSxHQUFHQyxJQUFJLENBQUNDLEdBQUwsQ0FBUywwQkFBU1QsTUFBVCxFQUFpQkMsTUFBakIsQ0FBVCxFQUFtQyxLQUFuQyxDQU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gPCA0KSB7XG4gICAgICBjb25zb2xlLndhcm4oYE1pbmltdW0gc3RlcHMgdG8gZHJhdyBhIGNpcmNsZSBpcyA0IGApOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGUsbm8tdW5kZWZcbiAgICAgIG9wdGlvbnMuc3RlcHMgPSA0O1xuICAgIH1cblxuICAgIGNvbnN0IHJhZGl1cyA9IE1hdGgubWF4KGRpc3RhbmNlKGNvb3JkMSwgY29vcmQyKSwgMC4wMDEpO1xuICAgIGNvbnN0IGdlb21ldHJ5ID0gY2lyY2xlKGNvb3JkMSwgcmFkaXVzLCBvcHRpb25zKTtcblxuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMgPSBnZW9tZXRyeS5wcm9wZXJ0aWVzIHx8IHt9O1xuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMuc2hhcGUgPSAnQ2lyY2xlJztcblxuICAgIHJldHVybiBnZW9tZXRyeTtcbiAgfVxufVxuIl19 |
@@ -50,3 +50,5 @@ "use strict"; | ||
value: function getTwoClickPolygon(coord1, coord2, modeConfig) { | ||
var rectangle = (0, _bboxPolygon["default"])([coord1[0], coord1[1], coord2[0], coord2[1]]); // @ts-ignore | ||
var rectangle = (0, _bboxPolygon["default"])([coord1[0], coord1[1], coord2[0], coord2[1]]); | ||
rectangle.properties = rectangle.properties || {}; | ||
rectangle.properties.shape = 'Rectangle'; // @ts-ignore | ||
@@ -61,2 +63,2 @@ return rectangle; | ||
exports.DrawRectangleMode = DrawRectangleMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1yZWN0YW5nbGUtbW9kZS50cyJdLCJuYW1lcyI6WyJEcmF3UmVjdGFuZ2xlTW9kZSIsImNvb3JkMSIsImNvb3JkMiIsIm1vZGVDb25maWciLCJyZWN0YW5nbGUiLCJUd29DbGlja1BvbHlnb25Nb2RlIl0sI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CB7IFR3b0NsaWNrUG9seWdvbk1vZGUgfSBmcm9tICcuL3R3by1jbGljay1wb2x5Z29uLW1vZGUnO1xuXG5leHBvcnQgY2xhc3MgRHJhd1JlY3RhbmdsZU1vZGUgZXh0ZW5kcyBUd29DbGlja1BvbHlnb25Nb2RlIHtcbiAgZ2V0VHdvQ2xpY2tQb2x5Z29uKGNvb3JkMTogUG9zaXRpb24sIGNvb3JkMjogUG9zaXRpb24sIG1vZGVDb25maWc6IGFueSk6IEZlYXR1cmVPZjxQb2x5Z29uPiB7XG4gICAgY29uc3QgcmVjdGFuZ2xlID0gYmJveFBvbHlnb24oW2Nvb3JkMVswXSwgY29vcmQxWzFdLCBjb29yZDJbMF0sIGNvb3JkMlsxXV0pO1xuICAgIHJlY3RhbmdsZS5wcm9wZXJ0aWVzID0gcmVjdGFuZ2xlLnByb3BlcnRpZXMgfHwge307XG4gICAgcmVjdGFuZ2xlLnByb3BlcnRpZXMuc2hhcGUgPSAnUmVjdGFuZ2xlJztcblxuICAgIC8vIEB0cy1pZ25vcmVcbiAgICByZXR1cm4gcmVjdGFuZ2xlO1xuICB9XG59XG4iXX0= |
@@ -67,2 +67,5 @@ "use strict"; | ||
type: 'Feature', | ||
properties: { | ||
shape: 'Rectangle' | ||
}, | ||
geometry: { | ||
@@ -83,2 +86,2 @@ type: 'Polygon', | ||
exports.DrawRectangleUsingThreePointsMode = DrawRectangleUsingThreePointsMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1yZWN0YW5nbGUtdXNpbmctdGhyZWUtcG9pbnRzLW1vZGUudHMiXSwibmFtZXMiOlsiRHJhd1JlY3RhbmdsZVVzaW5nVGhyZWVQb2ludHNNb2RlIiwiY29vcmQxIiwiY29vcmQyIiwiY29vcmQzIiwibW9kZUNvbmZpZyIsInAzIiwicDQiLCJ0eXBlIiwiZ2VvbWV0cnkiLCJjb29y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WVDbGlja1BvbHlnb25Nb2RlIHtcbiAgZ2V0VGhyZWVDbGlja1BvbHlnb24oXG4gICAgY29vcmQxOiBQb3NpdGlvbixcbiAgICBjb29yZDI6IFBvc2l0aW9uLFxuICAgIGNvb3JkMzogUG9zaXRpb24sXG4gICAgbW9kZUNvbmZpZzogYW55XG4gICk6IEZlYXR1cmVPZjxQb2x5Z29uPiB8IG51bGwgfCB1bmRlZmluZWQge1xuICAgIGNvbnN0IFtwMywgcDRdID0gZ2VuZXJhdGVQb2ludHNQYXJhbGxlbFRvTGluZVBvaW50cyhjb29yZDEsIGNvb3JkMiwgY29vcmQzKTtcblxuICAgIHJldHVybiB7XG4gICAgICB0eXBlOiAnRmVhdHVyZScsXG4gICAgICBnZW9tZXRyeToge1xuICAgICAgICB0eXBlOiAnUG9seWdvbicsXG4gICAgICAgIGNvb3JkaW5hdGVzOiBbXG4gICAgICAgICAgW1xuICAgICAgICAgICAgLy8gRHJhdyBhIHBvbHlnb24gY29udGFpbmluZyBhbGwgdGhlIHBvaW50cyBvZiB0aGUgTGluZVN0cmluZyxcbiAgICAgICAgICAgIC8vIHRoZW4gdGhlIHBvaW50cyBvcnRob2dvbmFsIHRvIHRoZSBsaW5lU3RyaW5nLFxuICAgICAgICAgICAgLy8gdGhlbiBiYWNrIHRvIHRoZSBzdGFydGluZyBwb3NpdGlvblxuICAgICAgICAgICAgY29vcmQxLFxuICAgICAgICAgICAgY29vcmQyLFxuICAgICAgICAgICAgcDMsXG4gICAgICAgICAgICBwNCxcbiAgICAgICAgICAgIGNvb3JkMSxcbiAgICAgICAgICBdLFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICB9O1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1yZWN0YW5nbGUtdXNpbmctdGhyZWUtcG9pbnRzLW1vZGUudHMiXSwibmFtZXMiOlsi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vcmQxLFxuICAgICAgICAgICAgY29vcmQyLFxuICAgICAgICAgICAgcDMsXG4gICAgICAgICAgICBwNCxcbiAgICAgICAgICAgIGNvb3JkMSxcbiAgICAgICAgICBdLFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICB9O1xuICB9XG59XG4iXX0= |
@@ -143,10 +143,11 @@ "use strict"; | ||
key: "getAddFeatureAction", | ||
value: function getAddFeatureAction(geometry, features) { | ||
value: function getAddFeatureAction(featureOrGeometry, features) { | ||
// Unsure why flow can't deal with Geometry type, but there I fixed it | ||
var geometryAsAny = geometry; | ||
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(features).addFeature({ | ||
var featureOrGeometryAsAny = featureOrGeometry; | ||
var feature = featureOrGeometryAsAny.type === 'Feature' ? featureOrGeometryAsAny : { | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: geometryAsAny | ||
}).getObject(); | ||
geometry: featureOrGeometryAsAny | ||
}; | ||
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(features).addFeature(feature).getObject(); | ||
return { | ||
@@ -200,3 +201,4 @@ updatedData: updatedData, | ||
key: "getAddFeatureOrBooleanPolygonAction", | ||
value: function getAddFeatureOrBooleanPolygonAction(geometry, props) { | ||
value: function getAddFeatureOrBooleanPolygonAction(featureOrGeometry, props) { | ||
var featureOrGeometryAsAny = featureOrGeometry; | ||
var selectedFeature = this.getSelectedFeature(props); | ||
@@ -212,5 +214,5 @@ var modeConfig = props.modeConfig; | ||
var feature = { | ||
var feature = featureOrGeometryAsAny.type === 'Feature' ? featureOrGeometryAsAny : { | ||
type: 'Feature', | ||
geometry: geometry | ||
geometry: featureOrGeometryAsAny | ||
}; | ||
@@ -251,3 +253,3 @@ var updatedGeometry; | ||
return this.getAddFeatureAction(geometry, props.data); | ||
return this.getAddFeatureAction(featureOrGeometry, props.data); | ||
} | ||
@@ -281,2 +283,2 @@ }, { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJ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JvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxuICBoYW5kbGVTdGFydERyYWdnaW5nKGV2ZW50OiBTdGFydERyYWdnaW5nRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxuICBoYW5kbGVTdG9wRHJhZ2dpbmcoZXZlbnQ6IFN0b3BEcmFnZ2luZ0V2ZW50LCBwcm9wczogTW9kZVByb3BzPEZlYXR1cmVDb2xsZWN0aW9uPik6IHZvaWQge31cbiAgaGFuZGxlRHJhZ2dpbmcoZXZlbnQ6IERyYWdnaW5nRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0SW50ZXJtZWRpYXRlUG9zaXRpb24ocG9zaXRpb24xOiBQb3NpdGlvbiwgcG9zaXRpb24yOiBQb3NpdGlvbik6IFBvc2l0aW9uIHtcbiAgY29uc3QgaW50ZXJtZWRpYXRlUG9zaXRpb24gPSBbXG4gICAgKHBvc2l0aW9uMVswXSArIHBvc2l0aW9uMlswXSkgLyAyLjAsXG4gICAgKHBvc2l0aW9uMVsxXSArIHBvc2l0aW9uMlsxXSkgLyAyLjAsXG4gIF07XG4gIC8vIEB0cy1pZ25vcmVcbiAgcmV0dXJuIGludGVybWVkaWF0ZVBvc2l0aW9uO1xufVxuIl19 |
@@ -115,4 +115,5 @@ "use strict"; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) // @ts-ignore | ||
? (0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) ? // eslint-disable-next-line | ||
// @ts-ignore | ||
(0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var boundingBox = (0, _bboxPolygon["default"])((0, _bbox["default"])(featureWithBuffer)); | ||
@@ -251,2 +252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||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) // @ts-ignore | ||
? (0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) ? // eslint-disable-next-line | ||
// @ts-ignore | ||
(0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var boundingBox = (0, _bboxPolygon["default"])((0, _bbox["default"])(featureWithBuffer)); | ||
@@ -289,2 +290,2 @@ boundingBox.properties.mode = 'scale'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvc2NhbGUtbW9kZS50cyJdLCJuYW1lcyI6WyJTY2FsZU1vZGUiLCJnZW9tZXRyeSIsImZlYXR1cmVzIiwiQXJyYXkiLCJpc0FycmF5IiwibGVuZ3RoIiwidHlwZSIsInNlbGVjdGVkSGFuZGxlIiwic2VsZWN0ZWRIYW5kbGVJbmRleCIsInByb3BlcnRpZXMiLCJwb3NpdGlvbkluZGV4ZXMiLCJndWlkZVBvaW50Q291bnQiLCJfY29ybmVyR3VpZGVQb2ludHMiLCJvcHBvc2l0ZUluZGV4IiwiZmluZCIsInAiLCJwcm9wcyIsImVkaXRlZERhdGEiLCJ1cGRhdGVkRGF0YSIsIkltbXV0YWJsZUZlYXR1cmVDb2xsZWN0aW9uIiwiZGF0YSIsInNlbGVjdGVkSW5kZXhlcyIsImkiLCJzZWxlY3RlZEluZGV4IiwibW92ZWRGZWF0dXJlIiwicmVwbGFjZUdlb21ldHJ5IiwiZ2V0T2JqZWN0IiwiQm9vbGVhbiIsIl9zZWxlY3RlZEVkaXRIYW5kbGUiLCJzdGFydERyYWdQb2ludCIsImN1cnJlbnRQb2ludCIsImVkaXRUeXBlIiwiX2lzU2luZ2xlUG9pbnRHZW9tZXRyeVNlbGVjdGVkIiwiX2dlb21ldHJ5QmVpbmdTY2FsZWQiLCJvcHBvc2l0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ZGl0SGFuZGxlVHlwZTogJ3NjYWxlJyxcbiAgICAgICAgICBwb3NpdGlvbkluZGV4ZXM6IFtjb29yZEluZGV4XSxcbiAgICAgICAgfSk7XG4gICAgICAgIGNvcm5lckd1aWRlUG9pbnRzLnB1c2goY29ybmVyUG9pbnQpO1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgdGhpcy5fY29ybmVyR3VpZGVQb2ludHMgPSBjb3JuZXJHdWlkZVBvaW50cztcbiAgICAvLyBAdHMtaWdub3JlXG4gICAgcmV0dXJuIGZlYXR1cmVDb2xsZWN0aW9uKFtib3VuZGluZ0JveCwgLi4udGhpcy5fY29ybmVyR3VpZGVQb2ludHNdKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBnZXRTY2FsZUZhY3RvcihjZW50cm9pZDogUG9zaXRpb24sIHN0YXJ0RHJhZ1BvaW50OiBQb3NpdGlvbiwgY3VycmVudFBvaW50OiBQb3NpdGlvbikge1xuICBjb25zdCBzdGFydERpc3RhbmNlID0gdHVyZkRpc3RhbmNlKGNlbnRyb2lkLCBzdGFydERyYWdQb2ludCk7XG4gIGNvbnN0IGVuZERpc3RhbmNlID0gdHVyZkRpc3RhbmNlKGNlbnRyb2lkLCBjdXJyZW50UG9pbnQpO1xuICByZXR1cm4gZW5kRGlzdGFuY2UgLyBzdGFydERpc3RhbmNlO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvc2NhbGUtbW9kZS50cyJdLCJuYW1lcyI6WyJTY2FsZU1vZGUiLCJnZW9tZXRyeSIsImZlYXR1cmVzIiwiQXJyYXkiLCJpc0FycmF5IiwibGVuZ3RoIiwidHlwZSIsInNlbGVjdGVkSGFuZGxlIiwic2VsZWN0ZWRIYW5kbGVJbmRleCIsInByb3BlcnRpZXMiLCJwb3NpdGlvbkluZGV4ZXMiLCJndWlkZVBvaW50Q291bnQiLCJfY29yb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GlzdGFuY2UoY2VudHJvaWQsIHN0YXJ0RHJhZ1BvaW50KTtcbiAgY29uc3QgZW5kRGlzdGFuY2UgPSB0dXJmRGlzdGFuY2UoY2VudHJvaWQsIGN1cnJlbnRQb2ludCk7XG4gIHJldHVybiBlbmREaXN0YW5jZSAvIHN0YXJ0RGlzdGFuY2U7XG59XG4iXX0= |
@@ -83,3 +83,13 @@ "use strict"; | ||
if (clickSequence.length > 1 && tentativeFeature && tentativeFeature.geometry.type === 'Polygon') { | ||
var editAction = this.getAddFeatureOrBooleanPolygonAction(tentativeFeature.geometry, props); | ||
var feature = { | ||
type: 'Feature', | ||
properties: { | ||
shape: tentativeFeature.properties.shape | ||
}, | ||
geometry: { | ||
type: 'Polygon', | ||
coordinates: tentativeFeature.geometry.coordinates | ||
} | ||
}; | ||
var editAction = this.getAddFeatureOrBooleanPolygonAction(feature, props); | ||
this.resetClickSequence(); | ||
@@ -116,2 +126,3 @@ | ||
properties: { | ||
shape: polygon.properties && polygon.properties.shape, | ||
guideType: 'tentative' | ||
@@ -141,2 +152,2 @@ }, | ||
exports.TwoClickPolygonMode = TwoClickPolygonMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvdHdvLWNsaWNrLXBvbHlnb24tbW9kZS50cyJdLCJuYW1lcyI6WyJUd29DbGlja1BvbHlnb25Nb2RlIiwiZXZlbnQiLCJwcm9wcyIsIm1vZGVDb25maWciLCJkcmFnVG9EcmF3IiwiYWRkQ2xpY2tTZXF1ZW5jZSIsImNoZWNrQW5kRmluaXNoUG9seWdvbiIsImNhbmNlbFBhbiIsImNsaWNrU2VxdWVuY2UiLCJnZXRDbGlja1NlcXVlbmNlIiwidGVudGF0aXZlRmVhdHVyZSIsImdldFRlbnRhdGl2ZUd1aWRlIiwibGVuZ3RoIiwiZ2VvbWV0cnkiLCJ0eXBlIiwiZWRpdEFjdGlvbiIsImdldEFkZ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biA9IHRoaXMuZ2V0VHdvQ2xpY2tQb2x5Z29uKGNvcm5lcjEsIGNvcm5lcjIsIG1vZGVDb25maWcpO1xuICAgIGlmIChwb2x5Z29uKSB7XG4gICAgICBndWlkZXMuZmVhdHVyZXMucHVzaCh7XG4gICAgICAgIHR5cGU6ICdGZWF0dXJlJyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHNoYXBlOiBwb2x5Z29uLnByb3BlcnRpZXMgJiYgcG9seWdvbi5wcm9wZXJ0aWVzLnNoYXBlLFxuICAgICAgICAgIGd1aWRlVHlwZTogJ3RlbnRhdGl2ZScsXG4gICAgICAgIH0sXG4gICAgICAgIGdlb21ldHJ5OiBwb2x5Z29uLmdlb21ldHJ5LFxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGd1aWRlcztcbiAgfVxuXG4gIGdldFR3b0NsaWNrUG9seWdvbihcbiAgICBjb29yZDE6IFBvc2l0aW9uLFxuICAgIGNvb3JkMjogUG9zaXRpb24sXG4gICAgbW9kZUNvbmZpZzogYW55XG4gICk6IEZlYXR1cmVPZjxQb2x5Z29uPiB8IG51bGwgfCB1bmRlZmluZWQge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgaGFuZGxlUG9pbnRlck1vdmUoZXZlbnQ6IFBvaW50ZXJNb3ZlRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KSB7XG4gICAgcHJvcHMub25VcGRhdGVDdXJzb3IoJ2NlbGwnKTtcbiAgfVxufVxuIl19 |
@@ -56,2 +56,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tZW1vaXplLnRzIl0sIm5hbWVzIjpbImlzRXF1YWwiLCJhIiwiYiIsIkFycmF5IiwiaXNBcnJheSIsImxlbiIsImxlbmd0aCIsImkiLCJtZW1vaXplIiw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dzKSB7XG4gICAgICBpZiAoIWlzRXF1YWwoYXJnc1trZXldLCBjYWNoZWRBcmdzW2tleV0pKSB7XG4gICAgICAgIGNhY2hlZFJlc3VsdCA9IGNvbXB1dGUoYXJncyk7XG4gICAgICAgIGNhY2hlZEFyZ3MgPSBhcmdzO1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGNhY2hlZFJlc3VsdDtcbiAgfTtcbn1cbiJdfQ== |
@@ -18,5 +18,5 @@ import { EditAction, ClickEvent, PointerMoveEvent, StartDraggingEvent, StopDraggingEvent, DraggingEvent, Pick, Tooltip, ModeProps, GuideFeatureCollection, TentativeFeature } from '../types'; | ||
isSelectionPicked(picks: Pick[], props: ModeProps<FeatureCollection>): boolean; | ||
getAddFeatureAction(geometry: Geometry, features: FeatureCollection): GeoJsonEditAction; | ||
getAddFeatureAction(featureOrGeometry: Geometry | Feature, features: FeatureCollection): GeoJsonEditAction; | ||
getAddManyFeaturesAction({ features: featuresToAdd }: FeatureCollection, features: FeatureCollection): GeoJsonEditAction; | ||
getAddFeatureOrBooleanPolygonAction(geometry: Polygon, props: ModeProps<FeatureCollection>): GeoJsonEditAction | null | undefined; | ||
getAddFeatureOrBooleanPolygonAction(featureOrGeometry: Polygon | Feature, props: ModeProps<FeatureCollection>): GeoJsonEditAction | null | undefined; | ||
handleClick(event: ClickEvent, props: ModeProps<FeatureCollection>): void; | ||
@@ -23,0 +23,0 @@ handlePointerMove(event: PointerMoveEvent, props: ModeProps<FeatureCollection>): void; |
@@ -16,2 +16,3 @@ import { FeatureCollection, Position } from '../geojson-types'; | ||
positionIndexes?: number[]; | ||
shape?: string; | ||
}>) => import("../geojson-types").FeatureWithProps<import("../geojson-types").Point, { | ||
@@ -22,2 +23,3 @@ guideType: "editHandle"; | ||
positionIndexes?: number[]; | ||
shape?: string; | ||
}>; | ||
@@ -24,0 +26,0 @@ _getUpdatedData: (props: ModeProps<FeatureCollection>, editedData: FeatureCollection) => FeatureCollection; |
@@ -66,5 +66,7 @@ import { Position, Point, Geometry, FeatureWithProps } from './geojson-types'; | ||
positionIndexes?: number[]; | ||
shape?: string; | ||
}>; | ||
export declare type TentativeFeature = FeatureWithProps<Geometry, { | ||
guideType: 'tentative'; | ||
shape?: string; | ||
}>; | ||
@@ -71,0 +73,0 @@ export declare type GuideFeature = EditHandleFeature | TentativeFeature; |
@@ -248,2 +248,2 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFHQTs7QUFHQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFHQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFHQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFHQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIHsgRWRpdE1vZGUgfSBmcm9tICcuL2xpYi9lZGl0LW1vZGUnO1xuZXh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3RvcERyYWdnaW5nRXZlbnQsXG4gIERyYWdnaW5nRXZlbnQsXG4gIERvdWJsZUNsaWNrRXZlbnQsXG4gIE1vZGVQcm9wcyxcbiAgR3VpZGVGZWF0dXJlQ29sbGVjdGlvbixcbiAgVmlld3BvcnQsXG4gIFRvb2x0aXAsXG59IGZyb20gJy4vdHlwZXMnO1xuXG5leHBvcnQgdHlwZSB7XG4gIFBvc2l0aW9uLFxuICBQb2ludENvb3JkaW5hdGVzLFxuICBMaW5lU3RyaW5nQ29vcmRpbmF0ZXMsXG4gIFBvbHlnb25Db29yZGluYXRlcyxcbiAgTXVsdGlQb2ludENvb3JkaW5hdGVzLFxuICBNdWx0aUxpbmVTdHJpbmdDb29yZGluYXRlcyxcbiAgTXVsdGlQb2x5Z29uQ29vcmRpbmF0ZXMsXG4gIEFueUNvb3JkaW5hdGVzLFxuICBQb2ludCxcbiAgTGluZVN0cmluZyxcbiAgUG9seWdvbixcbiAgTXVsdGlQb2ludCxcbiAgTXVsdGlMaW5lU3RyaW5nLFxuICBNdWx0aVBvbHlnb24sXG4gIEdlb21ldHJ5LFxuICBQb2x5Z29uYWwsXG4gIEJvdW5kaW5nQm94QXJyYXksXG4gIEZlYXR1cmVPZixcbiAgRmVhdHVyZVdpdGhQcm9wcyxcbiAgRmVhdHVyZSxcbiAgRmVhdHVyZUNvbGxlY3Rpb24sXG4gIEFueUdlb0pzb24sXG59IGZyb20gJy4vZ2VvanNvbi10eXBlcyc7XG4iXX0= |
@@ -71,3 +71,6 @@ "use strict"; | ||
var radius = Math.max((0, _distance["default"])(coord1, centerCoordinates), 0.001); | ||
return (0, _circle["default"])(centerCoordinates, radius, options); | ||
var geometry = (0, _circle["default"])(centerCoordinates, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
@@ -80,2 +83,2 @@ }]); | ||
exports.DrawCircleByDiameterMode = DrawCircleByDiameterMode; | ||
//# sourceMappingURL=data:application/json;char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tcbiAgfVxufVxuIl19 |
@@ -68,3 +68,6 @@ "use strict"; | ||
var radius = Math.max((0, _distance["default"])(coord1, coord2), 0.001); | ||
return (0, _circle["default"])(coord1, radius, options); | ||
var geometry = (0, _circle["default"])(coord1, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
@@ -77,2 +80,2 @@ }]); | ||
exports.DrawCircleFromCenterMode = DrawCircleFromCenterMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1jaXJjbGUtZnJvbS1jZW50ZXItbW9kZS50cyJdLCJuYW1lcyI6WyJEcmF3Q2lyY2xlRnJvbUNlbnRlck1vZGUiLCJjb29yZDEiLCJjb29yZDIiLCJtb2RlQ29uZmlnIiwic3RlcHMiLCJvcHRpb25zIiwiY29uc29sZSIsIndhcm4iLCJyYWRpdXMiLCJNYXRoIiwibWF4IiwiVHdvQ2xpY2tQb2x5Z29uTW9kZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUNBOztBQUVBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUVhQSx3Qjs7Ozs7Ozs7Ozs7Ozt1Q0FDUUMsTSxFQUFrQkMsTSxFQUFrQkMsVSxFQUFxQztBQUMxRjtBQUQwRixpQkFFbkVBLFVBQVUsSUFBSSxFQUZxRDtBQUFBLDRCQUVsRkMsS0FGa0Y7QUFBQSxVQUVsRkEsS0FGa0YsMkJBRTFFLEVBRjBFOztBQUcxRixVQUFNQyxPQUFPLEdBQUc7QUFBRUQsUUFBQUEsS0FBSyxFQUFMQTtBQUFGLE9BQWhCOztBQUVBLFVBQUlBLEtBQUssR0FBRyxDQUFaLEVBQWU7QUFDYkUsUUFBQUEsT0FBTyxDQUFDQyxJQUFSLHlDQURhLENBQ3lDOztBQUN0REYsUUFBQUEsT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dHVyZiB2YWx1ZSBmb3IgY2lyY2xlIGlzIDY0XG4gICAgY29uc3QgeyBzdGVwcyA9IDY0IH0gPSBtb2RlQ29uZmlnIHx8IHt9O1xuICAgIGNvbnN0IG9wdGlvbnMgPSB7IHN0ZXBzIH07XG5cbiAgICBpZiAoc3RlcHMgPCA0KSB7XG4gICAgICBjb25zb2xlLndhcm4oYE1pbmltdW0gc3RlcHMgdG8gZHJhdyBhIGNpcmNsZSBpcyA0IGApOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGUsbm8tdW5kZWZcbiAgICAgIG9wdGlvbnMuc3RlcHMgPSA0O1xuICAgIH1cblxuICAgIGNvbnN0IHJhZGl1cyA9IE1hdGgubWF4KGRpc3RhbmNlKGNvb3JkMSwgY29vcmQyKSwgMC4wMDEpO1xuICAgIGNvbnN0IGdlb21ldHJ5ID0gY2lyY2xlKGNvb3JkMSwgcmFkaXVzLCBvcHRpb25zKTtcblxuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMgPSBnZW9tZXRyeS5wcm9wZXJ0aWVzIHx8IHt9O1xuICAgIGdlb21ldHJ5LnByb3BlcnRpZXMuc2hhcGUgPSAnQ2lyY2xlJztcblxuICAgIHJldHVybiBnZW9tZXRyeTtcbiAgfVxufVxuIl19 |
@@ -50,3 +50,5 @@ "use strict"; | ||
value: function getTwoClickPolygon(coord1, coord2, modeConfig) { | ||
var rectangle = (0, _bboxPolygon["default"])([coord1[0], coord1[1], coord2[0], coord2[1]]); // @ts-ignore | ||
var rectangle = (0, _bboxPolygon["default"])([coord1[0], coord1[1], coord2[0], coord2[1]]); | ||
rectangle.properties = rectangle.properties || {}; | ||
rectangle.properties.shape = 'Rectangle'; // @ts-ignore | ||
@@ -61,2 +63,2 @@ return rectangle; | ||
exports.DrawRectangleMode = DrawRectangleMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyY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29udGVudCI6WyJpbXBvcnQgYmJveFBvbHlnb24gZnJvbSAnQHR1cmYvYmJveC1wb2x5Z29uJztcbmltcG9ydCB7IFBvc2l0aW9uLCBQb2x5Z29uLCBGZWF0dXJlT2YgfSBmcm9tICcuLi9nZW9qc29uLXR5cGVzJztcbmltcG9ydCB7IFR3b0NsaWNrUG9seWdvbk1vZGUgfSBmcm9tICcuL3R3by1jbGljay1wb2x5Z29uLW1vZGUnO1xuXG5leHBvcnQgY2xhc3MgRHJhd1JlY3RhbmdsZU1vZGUgZXh0ZW5kcyBUd29DbGlja1BvbHlnb25Nb2RlIHtcbiAgZ2V0VHdvQ2xpY2tQb2x5Z29uKGNvb3JkMTogUG9zaXRpb24sIGNvb3JkMjogUG9zaXRpb24sIG1vZGVDb25maWc6IGFueSk6IEZlYXR1cmVPZjxQb2x5Z29uPiB7XG4gICAgY29uc3QgcmVjdGFuZ2xlID0gYmJveFBvbHlnb24oW2Nvb3JkMVswXSwgY29vcmQxWzFdLCBjb29yZDJbMF0sIGNvb3JkMlsxXV0pO1xuICAgIHJlY3RhbmdsZS5wcm9wZXJ0aWVzID0gcmVjdGFuZ2xlLnByb3BlcnRpZXMgfHwge307XG4gICAgcmVjdGFuZ2xlLnByb3BlcnRpZXMuc2hhcGUgPSAnUmVjdGFuZ2xlJztcblxuICAgIC8vIEB0cy1pZ25vcmVcbiAgICByZXR1cm4gcmVjdGFuZ2xlO1xuICB9XG59XG4iXX0= |
@@ -67,2 +67,5 @@ "use strict"; | ||
type: 'Feature', | ||
properties: { | ||
shape: 'Rectangle' | ||
}, | ||
geometry: { | ||
@@ -83,2 +86,2 @@ type: 'Polygon', | ||
exports.DrawRectangleUsingThreePointsMode = DrawRectangleUsingThreePointsMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZHJhdy1yZWN0YW5nbGUtdXNpbmctdGhyZWUtcG9pbnRzLW1v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0IHsgVGhyZWVDbGlja1BvbHlnb25Nb2RlIH0gZnJvbSAnLi90aHJlZS1jbGljay1wb2x5Z29uLW1vZGUnO1xuXG5leHBvcnQgY2xhc3MgRHJhd1JlY3RhbmdsZVVzaW5nVGhyZWVQb2ludHNNb2RlIGV4dGVuZHMgVGhyZWVDbGlja1BvbHlnb25Nb2RlIHtcbiAgZ2V0VGhyZWVDbGlja1BvbHlnb24oXG4gICAgY29vcmQxOiBQb3NpdGlvbixcbiAgICBjb29yZDI6IFBvc2l0aW9uLFxuICAgIGNvb3JkMzogUG9zaXRpb24sXG4gICAgbW9kZUNvbmZpZzogYW55XG4gICk6IEZlYXR1cmVPZjxQb2x5Z29uPiB8IG51bGwgfCB1bmRlZmluZWQge1xuICAgIGNvbnN0IFtwMywgcDRdID0gZ2VuZXJhdGVQb2ludHNQYXJhbGxlbFRvTGluZVBvaW50cyhjb29yZDEsIGNvb3JkMiwgY29vcmQzKTtcblxuICAgIHJldHVybiB7XG4gICAgICB0eXBlOiAnRmVhdHVyZScsXG4gICAgICBnZW9tZXRyeToge1xuICAgICAgICB0eXBlOiAnUG9seWdvbicsXG4gICAgICAgIGNvb3JkaW5hdGVzOiBbXG4gICAgICAgICAgW1xuICAgICAgICAgICAgLy8gRHJhdyBhIHBvbHlnb24gY29udGFpbmluZyBhbGwgdGhlIHBvaW50cyBvZiB0aGUgTGluZVN0cmluZyxcbiAgICAgICAgICAgIC8vIHRoZW4gdGhlIHBvaW50cyBvcnRob2dvbmFsIHRvIHRoZSBsaW5lU3RyaW5nLFxuICAgICAgICAgICAgLy8gdGhlbiBiYWNrIHRvIHRoZSBzdGFydGluZyBwb3NpdGlvblxuICAgICAgICAgICAgY29vcmQxLFxuICAgICAgICAgICAgY29vcmQyLFxuICAgICAgICAgICAgcDMsXG4gICAgICAgICAgICBwNCxcbiAgICAgICAgICAgIGNvb3JkMSxcbiAgICAgICAgICBdLFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICB9O1xuICB9XG59X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mluZyxcbiAgICAgICAgICAgIC8vIHRoZW4gdGhlIHBvaW50cyBvcnRob2dvbmFsIHRvIHRoZSBsaW5lU3RyaW5nLFxuICAgICAgICAgICAgLy8gdGhlbiBiYWNrIHRvIHRoZSBzdGFydGluZyBwb3NpdGlvblxuICAgICAgICAgICAgY29vcmQxLFxuICAgICAgICAgICAgY29vcmQyLFxuICAgICAgICAgICAgcDMsXG4gICAgICAgICAgICBwNCxcbiAgICAgICAgICAgIGNvb3JkMSxcbiAgICAgICAgICBdLFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICB9O1xuICB9XG59XG4iXX0= |
@@ -143,10 +143,11 @@ "use strict"; | ||
key: "getAddFeatureAction", | ||
value: function getAddFeatureAction(geometry, features) { | ||
value: function getAddFeatureAction(featureOrGeometry, features) { | ||
// Unsure why flow can't deal with Geometry type, but there I fixed it | ||
var geometryAsAny = geometry; | ||
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(features).addFeature({ | ||
var featureOrGeometryAsAny = featureOrGeometry; | ||
var feature = featureOrGeometryAsAny.type === 'Feature' ? featureOrGeometryAsAny : { | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: geometryAsAny | ||
}).getObject(); | ||
geometry: featureOrGeometryAsAny | ||
}; | ||
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(features).addFeature(feature).getObject(); | ||
return { | ||
@@ -200,3 +201,4 @@ updatedData: updatedData, | ||
key: "getAddFeatureOrBooleanPolygonAction", | ||
value: function getAddFeatureOrBooleanPolygonAction(geometry, props) { | ||
value: function getAddFeatureOrBooleanPolygonAction(featureOrGeometry, props) { | ||
var featureOrGeometryAsAny = featureOrGeometry; | ||
var selectedFeature = this.getSelectedFeature(props); | ||
@@ -212,5 +214,5 @@ var modeConfig = props.modeConfig; | ||
var feature = { | ||
var feature = featureOrGeometryAsAny.type === 'Feature' ? featureOrGeometryAsAny : { | ||
type: 'Feature', | ||
geometry: geometry | ||
geometry: featureOrGeometryAsAny | ||
}; | ||
@@ -251,3 +253,3 @@ var updatedGeometry; | ||
return this.getAddFeatureAction(geometry, props.data); | ||
return this.getAddFeatureAction(featureOrGeometry, props.data); | ||
} | ||
@@ -281,2 +283,2 @@ }, { | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZ2VvanNvbi1lZGl0LW1vZGUudHMiXSwibmFtZXMiOlsiREVGQVVMVF9HVUlERVMiLCJ0eXBlIiwiZmVhdHVyZXMiLCJERUZBVUxUX1RPT0xUSVBTIiwiR2VvSnNvbkVkaXRNb2RlIiwicHJvcHMiLCJzZWxlY3RlZEluZGV4ZXMiLCJsZW5ndGgiLCJkYXRhIiwiZmVhdHVyZSIsImdldFNlbGVjdGVkRmVhdHVyZSIsImdlb21ldHJ5Iiwic2VsZWN0ZWRGZWF0dXJlcyIsIm1hcCIsInNlbGVjdGVkSW5kZXgiLCJfY2xpY2tTZXF1ZW5jZSIsIm1hcENvb3JkcyIsInB1c2giLCJndWlkZXMiLCJnZXRHdWlkZXMiLCJmaW5kIiwiZiIsInByb3BlcnRpZXMiLCJndWlkZVR5cGUiLCJwaWNrcyIsInBpY2tlZEZlYXR1cmVzIiwiaW5kZXgiLCJwaWNrZWRIYW5kbGVzIiwiZmVhdHVyZUluZGV4IiwicGlja2VkSW5kZXhlcyIsIlNldCIsInNvbWUiLCJoYXMiLCJnZW9tZXRyeUFzQW55IiwidXBkYXRlZERhdGEiLCJJbW11dGFibGVGZWF0dXJlQ29sbGVjdGlvbiIsImFkZEZlYXR1cmUiLCJnZXRPYmplY3QiLCJlZGl0VHlwZSIsImVkaXRDb250ZXh0IiwiZmVhdHVyZUluZGV4ZXMiLCJmZWF0dXJlc1RvQWRkIiwiaW5pdGlhbEluZGV4IiwidXBkYXRlZEluZGV4ZXMiLCJzZWxlY3RlZEZlYXR1cmUiLCJtb2RlQ29uZmlnIiwiYm9vbGVhbk9wZXJh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rKGV2ZW50OiBDbGlja0V2ZW50LCBwcm9wczogTW9kZVByb3BzPEZlYXR1cmVDb2xsZWN0aW9uPik6IHZvaWQge31cbiAgaGFuZGxlUG9pbnRlck1vdmUoZXZlbnQ6IFBvaW50ZXJNb3ZlRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxuICBoYW5kbGVTdGFydERyYWdnaW5nKGV2ZW50OiBTdGFydERyYWdnaW5nRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxuICBoYW5kbGVTdG9wRHJhZ2dpbmcoZXZlbnQ6IFN0b3BEcmFnZ2luZ0V2ZW50LCBwcm9wczogTW9kZVByb3BzPEZlYXR1cmVDb2xsZWN0aW9uPik6IHZvaWQge31cbiAgaGFuZGxlRHJhZ2dpbmcoZXZlbnQ6IERyYWdnaW5nRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KTogdm9pZCB7fVxufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0SW50ZXJtZWRpYXRlUG9zaXRpb24ocG9zaXRpb24xOiBQb3NpdGlvbiwgcG9zaXRpb24yOiBQb3NpdGlvbik6IFBvc2l0aW9uIHtcbiAgY29uc3QgaW50ZXJtZWRpYXRlUG9zaXRpb24gPSBbXG4gICAgKHBvc2l0aW9uMVswXSArIHBvc2l0aW9uMlswXSkgLyAyLjAsXG4gICAgKHBvc2l0aW9uMVsxXSArIHBvc2l0aW9uMlsxXSkgLyAyLjAsXG4gIF07XG4gIC8vIEB0cy1pZ25vcmVcbiAgcmV0dXJuIGludGVybWVkaWF0ZVBvc2l0aW9uO1xufVxuIl19 |
@@ -115,4 +115,5 @@ "use strict"; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) // @ts-ignore | ||
? (0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) ? // eslint-disable-next-line | ||
// @ts-ignore | ||
(0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var boundingBox = (0, _bboxPolygon["default"])((0, _bbox["default"])(featureWithBuffer)); | ||
@@ -251,2 +252,2 @@ var previousCoord = null; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvcm90YXRlLW1vZGUudHMiXSwibmFtZXMiOlsiUm90YXRlTW9kZSIsImdlb21ldHJ5IiwiZmVhdHVyZXMiLCJBcnJheSIsImlzQXJyYXkiLCJsZW5ndGgiLCJ0eXBlIiwiX2lzUm90YXRpbmciLCJwcm9wcyIsInNlbGVjdGVkR2VvbWV0cnkiLCJfZ2VvbWV0cnlCZWluZ1JvdGF0ZWQiLCJnZXRTZWxlY3RlZEZlYXR1cmVzQXNGZWF0dXJlQ29sbGVjdGlvbiIsImZlYXR1cmVXaXRoQnVmZmVyIiwiX2lzU2luZ2xlUG9pbnRHZW9tZXRyeVNlbGVjdGVkIiwiYm91bmRpbmdCb3giLCJwcmV2aW91c0Nvb3JkIiwidG9wRWRnZU1pZHBvaW50Q29vcmRzIiwibG9uZ2VzdEVkZ2VMZW5ndGgiLCJjb29yZCIsImNvb3JkSW5kZXgiLCJlZGdlTWlkcG9pbnQiLCJlZGdlRGlzdGFuY2UiLCJNYXRoIiwibWF4Iiwicm90YXRlSGFuZGxlQ29vcmRzIiwibGluZUZyb21FbnZlbG9wZVRvUm90YXRlSGFuZGxlIiwicm90YXRlSGFuZGxlIiwiZ3VpZGVUeXBlIiwiZWRpdEhhbmRsZVR5cGUiLCJldmVudCIsInJvdGF0ZUFjdGlvbiIsImdldFJvdGF0ZUFjdGlvbiIsInBvaW50ZXJEb3duTWFwQ29vcmRzIiwibWFwQ29vcmRzIiwib25FZGl0IiwiY2FuY2VsUGFuIiwic2VsZ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yYWdQb2ludCk7XG4gIGNvbnN0IGJlYXJpbmcyID0gdHVyZkJlYXJpbmcoY2VudHJvaWQsIGN1cnJlbnRQb2ludCk7XG4gIHJldHVybiBiZWFyaW5nMiAtIGJlYXJpbmcxO1xufVxuIl19 |
@@ -256,4 +256,5 @@ "use strict"; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) // @ts-ignore | ||
? (0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) ? // eslint-disable-next-line | ||
// @ts-ignore | ||
(0, _buffer["default"])(selectedGeometry, 1) : selectedGeometry; | ||
var boundingBox = (0, _bboxPolygon["default"])((0, _bbox["default"])(featureWithBuffer)); | ||
@@ -289,2 +290,2 @@ boundingBox.properties.mode = 'scale'; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvc2NhbGUtbW9kZS50cyJdLCJuYW1lcyI6WyJTY2FsZU1vZGUiLCJnZW9tZXRyeSIsImZlYXR1cmVzIiwiQXJyYXkiLCJpc0FycmF5IiwibGVuZ3RoIiwidHlwZSIsInNlbGVjdGVkSGFuZGxlIiwic2VsZWN0ZWRIYW5kbGVJbmRleCIsInByb3BlcnRpZXMiLCJwb3NpdGlvbkluZGV4ZXMiLCJndWlkZVBvaW50Q291bnQiLCJfY29ybmVyR3VpZGVQb2ludHMiLCJvcHBvc2l0ZUluZGV4IiwiZmluZCIsInAiLCJwcm9wcyIsImVkaXRlZERhdGEiLCJ1cGRhdGVkRGF0YSIsIkltbXV0YWJsZUZlYXR1cmVDb2xsZWN0aW9uIiwiZGF0YSIsInNlbGVjdGVkSW5kZXhlcyIsImkiLCJzZWxlY3RlZEluZGV4IiwibW92ZWRGZWF0dXJlIiwicmVwbGFjZUdlb21ldHJ5IiwiZ2V0T2JqZWN0IiwiQm9vbGVhbiIsIl9zZW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lkcG9pbnQgZ3VpZGVzIGZyb20gdGhlIGVudmVsb3BpbmcgYm94XG4gICAgICAgIGNvbnN0IGNvcm5lclBvaW50ID0gcG9pbnQoY29vcmQsIHtcbiAgICAgICAgICBndWlkZVR5cGU6ICdlZGl0SGFuZGxlJyxcbiAgICAgICAgICBlZGl0SGFuZGxlVHlwZTogJ3NjYWxlJyxcbiAgICAgICAgICBwb3NpdGlvbkluZGV4ZXM6IFtjb29yZEluZGV4XSxcbiAgICAgICAgfSk7XG4gICAgICAgIGNvcm5lckd1aWRlUG9pbnRzLnB1c2goY29ybmVyUG9pbnQpO1xuICAgICAgfVxuICAgIH0pO1xuXG4gICAgdGhpcy5fY29ybmVyR3VpZGVQb2ludHMgPSBjb3JuZXJHdWlkZVBvaW50cztcbiAgICAvLyBAdHMtaWdub3JlXG4gICAgcmV0dXJuIGZlYXR1cmVDb2xsZWN0aW9uKFtib3VuZGluZ0JveCwgLi4udGhpcy5fY29ybmVyR3VpZGVQb2ludHNdKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBnZXRTY2FsZUZhY3RvcihjZW50cm9pZDogUG9zaXRpb24sIHN0YXJ0RHJhZ1BvaW50OiBQb3NpdGlvbiwgY3VycmVudFBvaW50OiBQb3NpdGlvbikge1xuICBjb25zdCBzdGFydERpc3RhbmNlID0gdHVyZkRpc3RhbmNlKGNlbnRyb2lkLCBzdGFydERyYWdQb2ludCk7XG4gIGNvbnN0IGVuZERpc3RhbmNlID0gdHVyZkRpc3RhbmNlKGNlbnRyb2lkLCBjdXJyZW50UG9pbnQpO1xuICByZXR1cm4gZW5kRGlzdGFuY2UgLyBzdGFydERpc3RhbmNlO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvc2NhbGUtbW9kZS50cyJdLCJuYW1lcyI6WyJTY2FsZU1vZGUiLCJnZW9tZXRyeSIsImZlYXR1cmVzIiw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W9uIGdldFNjYWxlRmFjdG9yKGNlbnRyb2lkOiBQb3NpdGlvbiwgc3RhcnREcmFnUG9pbnQ6IFBvc2l0aW9uLCBjdXJyZW50UG9pbnQ6IFBvc2l0aW9uKSB7XG4gIGNvbnN0IHN0YXJ0RGlzdGFuY2UgPSB0dXJmRGlzdGFuY2UoY2VudHJvaWQsIHN0YXJ0RHJhZ1BvaW50KTtcbiAgY29uc3QgZW5kRGlzdGFuY2UgPSB0dXJmRGlzdGFuY2UoY2VudHJvaWQsIGN1cnJlbnRQb2ludCk7XG4gIHJldHVybiBlbmREaXN0YW5jZSAvIHN0YXJ0RGlzdGFuY2U7XG59XG4iXX0= |
@@ -83,3 +83,13 @@ "use strict"; | ||
if (clickSequence.length > 1 && tentativeFeature && tentativeFeature.geometry.type === 'Polygon') { | ||
var editAction = this.getAddFeatureOrBooleanPolygonAction(tentativeFeature.geometry, props); | ||
var feature = { | ||
type: 'Feature', | ||
properties: { | ||
shape: tentativeFeature.properties.shape | ||
}, | ||
geometry: { | ||
type: 'Polygon', | ||
coordinates: tentativeFeature.geometry.coordinates | ||
} | ||
}; | ||
var editAction = this.getAddFeatureOrBooleanPolygonAction(feature, props); | ||
this.resetClickSequence(); | ||
@@ -116,2 +126,3 @@ | ||
properties: { | ||
shape: polygon.properties && polygon.properties.shape, | ||
guideType: 'tentative' | ||
@@ -141,2 +152,2 @@ }, | ||
exports.TwoClickPolygonMode = TwoClickPolygonMode; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvdHdvLWNsaWNrLXBvbHlnb24tbW9kZS50cyJdLCJuYW1lcyI6WyJUd29DbGlja1BvbHlnb25Nb2RlIiwiZXZlbnQiLCJwcm9wcyIsIm1vZGVDb25maWciLCJkcmFnVG9EcmF3IiwiYWRkQ2xpY2tTZXF1ZW5jZSIsImNoZWNrQW5kRmluaXNoUG9seWdvbiIsImNhbmNlbFBh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Gd1aWRlcztcbiAgICB9XG5cbiAgICBjb25zdCBjb3JuZXIxID0gY2xpY2tTZXF1ZW5jZVswXTtcbiAgICBjb25zdCBjb3JuZXIyID0gbGFzdFBvaW50ZXJNb3ZlRXZlbnQubWFwQ29vcmRzO1xuXG4gICAgY29uc3QgcG9seWdvbiA9IHRoaXMuZ2V0VHdvQ2xpY2tQb2x5Z29uKGNvcm5lcjEsIGNvcm5lcjIsIG1vZGVDb25maWcpO1xuICAgIGlmIChwb2x5Z29uKSB7XG4gICAgICBndWlkZXMuZmVhdHVyZXMucHVzaCh7XG4gICAgICAgIHR5cGU6ICdGZWF0dXJlJyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHNoYXBlOiBwb2x5Z29uLnByb3BlcnRpZXMgJiYgcG9seWdvbi5wcm9wZXJ0aWVzLnNoYXBlLFxuICAgICAgICAgIGd1aWRlVHlwZTogJ3RlbnRhdGl2ZScsXG4gICAgICAgIH0sXG4gICAgICAgIGdlb21ldHJ5OiBwb2x5Z29uLmdlb21ldHJ5LFxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIGd1aWRlcztcbiAgfVxuXG4gIGdldFR3b0NsaWNrUG9seWdvbihcbiAgICBjb29yZDE6IFBvc2l0aW9uLFxuICAgIGNvb3JkMjogUG9zaXRpb24sXG4gICAgbW9kZUNvbmZpZzogYW55XG4gICk6IEZlYXR1cmVPZjxQb2x5Z29uPiB8IG51bGwgfCB1bmRlZmluZWQge1xuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgaGFuZGxlUG9pbnRlck1vdmUoZXZlbnQ6IFBvaW50ZXJNb3ZlRXZlbnQsIHByb3BzOiBNb2RlUHJvcHM8RmVhdHVyZUNvbGxlY3Rpb24+KSB7XG4gICAgcHJvcHMub25VcGRhdGVDdXJzb3IoJ2NlbGwnKTtcbiAgfVxufVxuIl19 |
@@ -56,2 +56,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=data:application/json;charset=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1vaXplKGNvbXB1dGU6IEZ1bmN0aW9uKSB7XG4gIGxldCBjYWNoZWRBcmdzID0ge307XG4gIGxldCBjYWNoZWRSZXN1bHQ7XG5cbiAgcmV0dXJuIChhcmdzOiBhbnkpID0+IHtcbiAgICBmb3IgKGNvbnN0IGtleSBpbiBhcmdzKSB7XG4gICAgICBpZiAoIWlzRXF1YWwoYXJnc1trZXldLCBjYWNoZWRBcmdzW2tleV0pKSB7XG4gICAgICAgIGNhY2hlZFJlc3VsdCA9IGNvbXB1dGUoYXJncyk7XG4gICAgICAgIGNhY2hlZEFyZ3MgPSBhcmdzO1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGNhY2hlZFJlc3VsdDtcbiAgfTtcbn1cbiJdfQ== |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"author": "Georgios Karnas <georgios@uber.com>", | ||
@@ -79,3 +79,3 @@ "repository": { | ||
}, | ||
"gitHead": "1e023b71dc471f2e76cfbf75cc88d10bb414db25" | ||
"gitHead": "6d5fa782cd7de7ffdce809aee67db9da19d830c3" | ||
} |
@@ -41,3 +41,3 @@ export type { EditMode } from './lib/edit-mode'; | ||
// Experimental | ||
export {default as _memoize} from './memoize'; | ||
export { default as _memoize } from './memoize'; | ||
@@ -44,0 +44,0 @@ export type { |
@@ -21,4 +21,9 @@ import circle from '@turf/circle'; | ||
return circle(centerCoordinates, radius, options); | ||
const geometry = circle(centerCoordinates, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
} |
@@ -18,5 +18,9 @@ import circle from '@turf/circle'; | ||
const radius = Math.max(distance(coord1, coord2), 0.001); | ||
const geometry = circle(coord1, radius, options); | ||
return circle(coord1, radius, options); | ||
geometry.properties = geometry.properties || {}; | ||
geometry.properties.shape = 'Circle'; | ||
return geometry; | ||
} | ||
} |
@@ -8,2 +8,5 @@ import bboxPolygon from '@turf/bbox-polygon'; | ||
const rectangle = bboxPolygon([coord1[0], coord1[1], coord2[0], coord2[1]]); | ||
rectangle.properties = rectangle.properties || {}; | ||
rectangle.properties.shape = 'Rectangle'; | ||
// @ts-ignore | ||
@@ -10,0 +13,0 @@ return rectangle; |
@@ -16,2 +16,5 @@ import { generatePointsParallelToLinePoints } from '../utils'; | ||
type: 'Feature', | ||
properties: { | ||
shape: 'Rectangle', | ||
}, | ||
geometry: { | ||
@@ -18,0 +21,0 @@ type: 'Polygon', |
@@ -98,14 +98,20 @@ import turfUnion from '@turf/union'; | ||
getAddFeatureAction(geometry: Geometry, features: FeatureCollection): GeoJsonEditAction { | ||
getAddFeatureAction( | ||
featureOrGeometry: Geometry | Feature, | ||
features: FeatureCollection | ||
): GeoJsonEditAction { | ||
// Unsure why flow can't deal with Geometry type, but there I fixed it | ||
const geometryAsAny: any = geometry; | ||
const featureOrGeometryAsAny: any = featureOrGeometry; | ||
const updatedData = new ImmutableFeatureCollection(features) | ||
.addFeature({ | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: geometryAsAny, | ||
}) | ||
.getObject(); | ||
const feature: any = | ||
featureOrGeometryAsAny.type === 'Feature' | ||
? featureOrGeometryAsAny | ||
: { | ||
type: 'Feature', | ||
properties: {}, | ||
geometry: featureOrGeometryAsAny, | ||
}; | ||
const updatedData = new ImmutableFeatureCollection(features).addFeature(feature).getObject(); | ||
return { | ||
@@ -148,5 +154,7 @@ updatedData, | ||
getAddFeatureOrBooleanPolygonAction( | ||
geometry: Polygon, | ||
featureOrGeometry: Polygon | Feature, | ||
props: ModeProps<FeatureCollection> | ||
): GeoJsonEditAction | null | undefined { | ||
const featureOrGeometryAsAny: any = featureOrGeometry; | ||
const selectedFeature = this.getSelectedFeature(props); | ||
@@ -167,6 +175,9 @@ const { modeConfig } = props; | ||
const feature = { | ||
type: 'Feature', | ||
geometry, | ||
}; | ||
const feature = | ||
featureOrGeometryAsAny.type === 'Feature' | ||
? featureOrGeometryAsAny | ||
: { | ||
type: 'Feature', | ||
geometry: featureOrGeometryAsAny, | ||
}; | ||
@@ -210,3 +221,3 @@ let updatedGeometry; | ||
} | ||
return this.getAddFeatureAction(geometry, props.data); | ||
return this.getAddFeatureAction(featureOrGeometry, props.data); | ||
} | ||
@@ -213,0 +224,0 @@ |
@@ -53,4 +53,5 @@ /* eslint-disable prettier/prettier */ | ||
const featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) | ||
// @ts-ignore | ||
? turfBuffer(selectedGeometry, 1) | ||
? // eslint-disable-next-line | ||
// @ts-ignore | ||
turfBuffer(selectedGeometry, 1) | ||
: selectedGeometry; | ||
@@ -57,0 +58,0 @@ |
@@ -196,4 +196,5 @@ /* eslint-disable prettier/prettier */ | ||
const featureWithBuffer = this._isSinglePointGeometrySelected(selectedGeometry) | ||
// @ts-ignore | ||
? turfBuffer(selectedGeometry, 1) | ||
? // eslint-disable-next-line | ||
// @ts-ignore | ||
turfBuffer(selectedGeometry, 1) | ||
: selectedGeometry; | ||
@@ -200,0 +201,0 @@ |
@@ -53,3 +53,13 @@ import { | ||
) { | ||
const editAction = this.getAddFeatureOrBooleanPolygonAction(tentativeFeature.geometry, props); | ||
const feature: FeatureOf<Polygon> = { | ||
type: 'Feature', | ||
properties: { | ||
shape: tentativeFeature.properties.shape, | ||
}, | ||
geometry: { | ||
type: 'Polygon', | ||
coordinates: tentativeFeature.geometry.coordinates, | ||
}, | ||
}; | ||
const editAction = this.getAddFeatureOrBooleanPolygonAction(feature, props); | ||
@@ -86,2 +96,3 @@ this.resetClickSequence(); | ||
properties: { | ||
shape: polygon.properties && polygon.properties.shape, | ||
guideType: 'tentative', | ||
@@ -88,0 +99,0 @@ }, |
// port from @deck.gl/core | ||
function isEqual(a: any, b: any) { | ||
@@ -4,0 +3,0 @@ if (a === b) { |
@@ -1,3 +0,1 @@ | ||
import { Position, Point, Geometry, FeatureWithProps } from './geojson-types'; | ||
@@ -98,2 +96,3 @@ | ||
positionIndexes?: number[]; | ||
shape?: string; | ||
} | ||
@@ -106,2 +105,3 @@ >; | ||
guideType: 'tentative'; | ||
shape?: string; | ||
} | ||
@@ -108,0 +108,0 @@ >; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1431218
13624