Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6971

Leaflet Support

$
0
0

@av8orbynight wrote:

I'm evaluating GoJS's fit for an Angular 5 enterprise application. It will require graphics (routes and points) on top of Leaflet.

I'm running in to a few problems. I'll submit a second topic for another issue I'm experiencing because it seems unrelated.

From the Leaflet sample at https://gojs.net/latest/samples/leaflet.html, I'm running into a problem with typing.

When setting up the on move behavior here:

myLeafletMap.on("move", function(e) {
myUpdatingGoJS = true;
myDiagram.updateAllTargetBindings("latlong"); // Without virtualization this can be slow if there are many nodes
myDiagram.redraw(); // At the expense of performance, this will make sure GoJS positions are updated immediately
myUpdatingGoJS = false;
});

there appear to be two issues:

  1. updateAllTargetBindings is only parameterless in the go.Diagram ts file, and does not accept a binding member to be specified ("latlong")
  2. there is no .redraw() in go.Diagram in the ts file. Is this an oversight or should I be using an alternate method to redraw my diagram?

I am on v 1.8.10.

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6971

Trending Articles