Skip to content

Commit

Permalink
revert to 'main' version of esmap.js, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
jkafader-esnet committed Nov 11, 2024
1 parent 7c18db1 commit 9329cfb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/lib/esmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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") {
Expand Down Expand Up @@ -1041,7 +1048,7 @@ export class EsMap {
default:
break;
}
});
})
}

destroy(){
Expand Down

0 comments on commit 9329cfb

Please sign in to comment.