Fix vertex hovering (targets are GeoJSON now)

This commit is contained in:
Bryan Housel
2018-01-20 01:20:29 -05:00
parent 94f89f67c2
commit d00bdc69a5

View File

@@ -406,9 +406,10 @@ export function svgVertices(projection, context) {
_prevHover = _currHover || {};
_currHoverTarget = target;
var entity = target && target.properties && target.properties.entity;
if (_currHoverTarget) {
_currHover = getSiblingAndChildVertices([_currHoverTarget.id], graph, wireframe, zoom);
if (entity) {
_currHover = getSiblingAndChildVertices([entity.id], graph, wireframe, zoom);
} else {
_currHover = {};
}