-
Notifications
You must be signed in to change notification settings - Fork 400
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
Implemented Feature Editor Plugin #2064
Implemented Feature Editor Plugin #2064
Conversation
* Replaces agGrid with react-data-grid (moved to FeatureGrid_ag) * Implementation of FeatureEditor plugin
package.json
Outdated
@@ -131,6 +132,7 @@ | |||
"react-container-dimensions": "1.3.2", | |||
"react-copy-to-clipboard": "5.0.0", | |||
"react-data-grid": "2.0.41", | |||
"react-data-grid-addons": "^2.0.49", | |||
"react-dnd": "2.4.0", |
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.
remove ^
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 think we can remove react-data-grid-addons at all. It is not used anymore.
@@ -22,8 +22,12 @@ const mapTypeSelector = (state) => state && state.maptype && state.maptype.mapTy | |||
* @return {boolean} | |||
*/ | |||
const isCesium = state => mapTypeSelector(state) === "cesium"; | |||
const isLeaflet = state => mapTypeSelector(state) === "leaflet"; |
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.
Where are you using this?
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.
it is not used anymore, but i think it can be useful in the future. But i can understand your point.
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 would replace all 3 with a generic is('<maptype')
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 FeatureGrid example does not work anymore
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.
After the query builder is open, the DrawerMenu cannot be closed anymore
* added tests * highlight generalized * improved drawermenu actions flows
static contextTypes = { | ||
messages: PropTypes.object | ||
static childContextTypes = { | ||
isModified: React.PropTypes.func, |
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.
use PropTypes, not React.PropTypes
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.
good catch!
}; | ||
constructor(props) { | ||
super(props); | ||
this.validate = (value) => { |
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.
You can also take this methods definitions out of the constructor and remove it
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.
It was my first attempt, but it didn't worked. Probably because it is a derived class.
@@ -125,40 +189,43 @@ class DrawSupport extends React.Component { | |||
} | |||
}); | |||
this.props.map.addLayer(vector); | |||
// Immidiatly draw passed features | |||
// Immediatly draw passed features |
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.
Immediately :-)
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.
yep, it was a partial fix.. o(ò ò)o
* Added new styles on feature grid * Fix webpack
We should evaluate to:
Other minor fixes: