Skip to content
Snippets Groups Projects

Notifications + small updates

Merged H9031 requested to merge notification-view into development
22 files
+ 547
589
Compare changes
  • Side-by-side
  • Inline
Files
22
+ 47
44
@@ -246,51 +246,54 @@ class DrawTools extends Component {
@@ -246,51 +246,54 @@ class DrawTools extends Component {
// The elements you draw will be added to this FeatureGroup layer,
// The elements you draw will be added to this FeatureGroup layer,
// when you hit edit button only items in this layer will be edited."
// when you hit edit button only items in this layer will be edited."
<FeatureGroup>
<FeatureGroup>
<EditControl
{(this.props.role === "admin" ||
position="topright"
this.props.role === "factionleader") && (
onCreated={this._onCreated}
<EditControl
onEdited={this._onEdited}
position="topright"
onEditStart={this._onEditDeleteStart}
onCreated={this._onCreated}
onEditStop={this._onEditDeleteStop}
onEdited={this._onEdited}
onDeleted={this._onDeleted}
onEditStart={this._onEditDeleteStart}
onDeleteStart={this._onEditDeleteStart}
onEditStop={this._onEditDeleteStop}
onDeleteStop={this._onEditDeleteStop}
onDeleted={this._onDeleted}
draw={{
onDeleteStart={this._onEditDeleteStart}
circle: {
onDeleteStop={this._onEditDeleteStop}
repeatMode: false, // allows using the tool again after finishing the previous shape
draw={{
shapeOptions: {
circle: {
color: "#f9f10c",
repeatMode: false, // allows using the tool again after finishing the previous shape
opacity: 1 // affects the outline only. for some reason it wasn't at full opacity, so this is needed for more clarity
shapeOptions: {
}
color: "#f9f10c",
},
opacity: 1 // affects the outline only. for some reason it wasn't at full opacity, so this is needed for more clarity
rectangle: {
}
repeatMode: false
},
polygon: {
repeatMode: true,
allowIntersection: false, // Restricts shapes to simple polygons
drawError: {
color: "#e1e100", // Color the shape will turn when intersects
message: "<strong>Oh snap!<strong> you can't draw that!" // Message that will show when intersect
},
},
shapeOptions: {
rectangle: {
color: "#ed2572",
repeatMode: false
opacity: 1
},
}
polygon: {
},
repeatMode: true,
polyline: {
allowIntersection: false, // Restricts shapes to simple polygons
repeatMode: true,
drawError: {
shapeOptions: {
color: "#e1e100", // Color the shape will turn when intersects
color: "#ed2572",
message: "<strong>Oh snap!<strong> you can't draw that!" // Message that will show when intersect
opacity: 1
},
}
shapeOptions: {
},
color: "#ed2572",
marker: {
opacity: 1
repeatMode: false
}
},
},
circlemarker: false
polyline: {
}}
repeatMode: true,
/>
shapeOptions: {
 
color: "#ed2572",
 
opacity: 1
 
}
 
},
 
marker: {
 
repeatMode: false
 
},
 
circlemarker: false
 
}}
 
/>
 
)}
{/* iterate through every element fetched from back-end */}
{/* iterate through every element fetched from back-end */}
{this.props.geoJSONLayer.features.map(feature => {
{this.props.geoJSONLayer.features.map(feature => {
Loading