IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit 29fc144e authored by jedjas12's avatar jedjas12
Browse files

Everything working, mostly

parent 383aa7ae
......@@ -125,7 +125,7 @@ export default class GeoQuery extends LightningElement {
}
});
} if (type === 'polygon') {
} if (type === 'polygon' || type === 'rectangle') {
map.addLayer(layer);
let polyLatLng = e.layer.getLatLngs();
console.log("The polygon is at " + polyLatLng);
......@@ -175,10 +175,7 @@ export default class GeoQuery extends LightningElement {
}
});
} if (type === 'rectangle') {
let rectLatLng = e.layer.getLatLngs();
console.log("The rectangle is at " + rectLatLng);
}
}
});
}
}
......@@ -56,6 +56,15 @@ export default class Map extends LightningElement {
drawError: {
color: '#8B0000', //Turns darkred
message: '<strong>Intersecting lines not allowed<strong>'
},
shapeOptions: {
color: '#007300'
}
},
rectangle: {
showArea: false,
shapeOptions: {
color: '#e59400'
}
},
polyline: false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment