![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-map-polygon-selector
Advanced tools
npm install react-map-polygon-selector
Wrap this component in whatever you like...
import UIMapPoly from 'react-map-polygon-selector';
export default class MyComponent extends React.Component {
constructor(props) {
super(props);
this.handleSubmit = this.doSubmit.bind(this);
this.getMatchData = this.doGetMatchData.bind(this);
}
doGetMatchData(data, callback) {
console.log('getMatchData', { data, callback });
const { bucket } = this.props;
data.bucketId = bucket._id;
Meteor.call('Buckets.GetMapsMatchData', data, callback);
// callback(null, { matches: 99 });
}
doSubmit(data) {
// translate map data into conf
const { bucket } = this.props;
if (!bucket.conf) {
bucket.conf = {};
}
Object.keys(data).forEach(key => {
if (!_.isObject(data[key])) return;
if (typeof data[key].toJSON !== 'function') return;
data[key] = data[key].toJSON();
});
bucket.conf.map = data;
this.props.handleSubmitBuckets(bucket, Bert.callback);
}
handleOverlayRejected(reason) {
Bert.error(reason);
}
render() {
return (
<div>
<UIMapPoly
editable={true}
getMatchData={this.getMatchData}
handleSubmit={this.handleSubmit}
handleOverlayRejected={this.handleOverlayRejected}
center={map.center}
markers={map.markers}
polygons={map.polygons}
circles={map.circles}
rectangles={map.rectangles}
currentArea={map.currentArea}
matchData={map.matchData}
/>
</div>
);
};
};
npm install
npm run storybook
FAQs
React Map Polygon Selector - Custom Wrapper for react-google-maps
We found that react-map-polygon-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.