-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#9352 Add new drawing/modify interaction component supports #9353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the changes to interfaces already agreed, the only changes regards typos or improvements to doc readability.
web/client/components/map/cesium/__tests__/DrawGeometrySupport-test.jsx
Outdated
Show resolved
Hide resolved
* @prop {function} onEditEnd triggered one the editing has been completed | ||
* @prop {function} toEditProperties convert properties of feature to edit properties geometryType, geodesic and radius are needed to compute the editing. geometryType could be: Point, LineString, Polygon or Circle | ||
* @prop {function} fromEditProperties restore properties of the feature to the original one | ||
* @prop {number} mouseMoveThrottleTime throttle value to limit the mousemove event callback and improve the interaction, default 100ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The default has been removed. Is it still valid as 100ms? Does it make sense to expose it? It is specific only of cesium.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it from the props so it's not exposed and 100ms by default
this._fromEditProperties = options.fromEditProperties ? options.fromEditProperties : (editProperties, feature) => ({ | ||
...feature?.properties, | ||
...(editProperties?.radius !== undefined && { radius: editProperties.radius }) | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this in common between functions as default
@@ -7,6 +7,7 @@ | |||
*/ | |||
|
|||
import * as Cesium from 'cesium'; | |||
import earcut from 'earcut'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this lib included? I can not see it package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@offtherailz I think it's included by cesium, if you want I can add it in the package.json?
Co-authored-by: Lorenzo Natali <[email protected]>
…-test.jsx Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
Co-authored-by: Lorenzo Natali <[email protected]>
…into issue_9352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice speed up of the tests. great job
Description
This PR implements draw and modify components that could be used for Cesium and OpenLayers. This new components will be used inside the refactor of Annotations
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#9352
What is the new behavior?
Introduced drawing and modify support for Cesium and a new components for OpenLayers
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information