mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix up opacity bug in the custom example
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
function removePolygon() {
|
function removePolygon() {
|
||||||
if (shownLayer) {
|
if (shownLayer) {
|
||||||
shownLayer.setOpacity(1);
|
shownLayer.setOpacity(1);
|
||||||
|
shownLayer = null;
|
||||||
}
|
}
|
||||||
if (polygon) {
|
if (polygon) {
|
||||||
map.removeLayer(polygon);
|
map.removeLayer(polygon);
|
||||||
|
|||||||
Reference in New Issue
Block a user