Support hovering on data features

This commit is contained in:
Bryan Housel
2018-08-25 00:04:52 -04:00
parent 7714e88f3d
commit a9aca707b6
4 changed files with 54 additions and 38 deletions
+11 -1
View File
@@ -60,12 +60,18 @@
}
.layer-mapdata path.shadow {
pointer-events: stroke;
stroke: #f6634f;
stroke-width: 16;
stroke-opacity: 0;
fill: none;
}
.layer-mapdata path.shadow.related:not(.selected),
.layer-mapdata path.MultiPoint.shadow,
.layer-mapdata path.Point.shadow {
pointer-events: fill;
fill: #f6634f;
fill-opacity: 0;
}
.layer-mapdata path.shadow.hover:not(.selected) {
stroke-opacity: 0.4;
}
@@ -97,6 +103,10 @@
.layer-mapdata text.label {
fill: #ff26d4;
}
.layer-mapdata text.label.hover,
.layer-mapdata text.label.selected {
fill: #f6634f;
}
.layer-mapdata text.label-halo {
opacity: 0.7;
stroke: #000;