Closed hamster0020 closed 5 months ago
Hi @hamster0020,
that plugin makes use of a custom renderer:
_initCanvas: function () {
var canvas = this._canvas = L.DomUtil.create('canvas', 'leaflet-heatmap-layer leaflet-layer');
var originProp = L.DomUtil.testProp(['transformOrigin', 'WebkitTransformOrigin', 'msTransformOrigin']);
canvas.style[originProp] = '50% 50%';
var size = this._map.getSize();
canvas.width = size.x;
canvas.height = size.y;
var animated = this._map.options.zoomAnimation && L.Browser.any3d;
L.DomUtil.addClass(canvas, 'leaflet-zoom-' + (animated ? 'animated' : 'hide'));
this._heat = simpleheat(canvas);
this._updateOptions();
}
It's up to you as a developer(s) to tweak them to make them work together (related to: #47).
👋 Raruto
When the map is rotated, markers will rotate follow the base map, but the heatmap spots cannot rotate follow the base map.