We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type:
Description: Hello, I would like to animate several paths on my map. So it seems the performance are better with canvas.
However, when I put a custom renderer, the paths are displayed but the animation does not work anymore.
I set the preferCanvas option to true for the map.
this.$refs.sensorMap.mapObject.createPane('customPane') this.canvasRenderer = this.$L.canvas({ pane: 'customPane' }) const antPolyline = this.$L.polyline.antPath( [ 'M', [this.originLatitude, this.originLongitude], 'Q', midpointLatLng, [latitude, longitude], ], { use: this.$L.curve, delay: 500, dashArray: [50, 10], weight: this.getWeight(item.data), color: this.getColor(item.dir), pulseColor: '#FFFFFF', hardwareAcceleration: true, interactive: false, reverse: item.dir === 'IN', renderer: this.canvasRenderer, <= this option breaks animations } )
The lines are drawn but the animations do not work anymore. Is it possible to have the animations using a canvas renderer? Thank you in advance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type:
Description:
Hello, I would like to animate several paths on my map. So it seems the performance are better with canvas.
However, when I put a custom renderer, the paths are displayed but the animation does not work anymore.
I set the preferCanvas option to true for the map.
The lines are drawn but the animations do not work anymore. Is it possible to have the animations using a canvas renderer?
Thank you in advance
The text was updated successfully, but these errors were encountered: