diff --git a/src/components/lib/esmap.js b/src/components/lib/esmap.js index 8b28f48..5e1746d 100644 --- a/src/components/lib/esmap.js +++ b/src/components/lib/esmap.js @@ -145,6 +145,9 @@ function renderEdges(g, data, ref, layerId) { var layerClass = ' l'+layerId; return 'edge edge-az edge-az-' + name + connections + layerClass; }) + .attr('text', function (d) { + return d.AZname; + }) .attr('pointer-events', 'stroke') .on('mousedown', function(event, d){ event.stopPropagation(); @@ -193,6 +196,9 @@ function renderEdges(g, data, ref, layerId) { var layerClass = ' l'+layerId; return 'edge edge-za edge-za-' + name + connections + layerClass; }) + .attr('text', function (d) { + return d.ZAname; + }) .attr('pointer-events', 'stroke') .on('mousedown', function(event, d){ event.stopPropagation(); @@ -997,6 +1003,7 @@ export class EsMap { } this.mapCanvas.listen(signals.SELECTION_CLEARED, clearSelection); + // function nudge(latOrLng, amount){ const nudge = (latOrLng, amount) => { if (this.lastInteractedType === null || this.lastInteractedObject === null) return; if (this.lastInteractedType === "nodes") { @@ -1041,7 +1048,7 @@ export class EsMap { default: break; } - }); + }) } destroy(){