Skip to content

Commit 3beba67

Browse files
committed
include built file
1 parent b07b2c3 commit 3beba67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/HeatmapLayer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ var HeatmapLayer = function (_MapLayer) {
213213
HeatmapLayer.prototype.attachEvents = function attachEvents() {
214214
var _this3 = this;
215215

216-
var leafletMap = this.props.map;
216+
var leafletMap = this.context.map;
217217
leafletMap.on('viewreset', function () {
218218
return _this3.reset();
219219
});
@@ -249,7 +249,7 @@ var HeatmapLayer = function (_MapLayer) {
249249
this._el.height = this._heatmap._height = size.y;
250250
}
251251

252-
if (this._heatmap && !this._frame && !this.props.map._animating) {
252+
if (this._heatmap && !this._frame && !this.context.map._animating) {
253253
this._frame = _leaflet2.default.Util.requestAnimFrame(this.redraw, this);
254254
}
255255

@@ -267,7 +267,7 @@ var HeatmapLayer = function (_MapLayer) {
267267
var v = 1 / Math.pow(2, Math.max(0, Math.min(maxZoom - this.context.map.getZoom(), 12)));
268268

269269
var cellSize = r / 2;
270-
var panePos = this.props.map._getMapPanePos();
270+
var panePos = this.context.map._getMapPanePos();
271271
var offsetX = panePos.x % cellSize;
272272
var offsetY = panePos.y % cellSize;
273273
var getLat = this.props.latitudeExtractor;
@@ -336,7 +336,7 @@ var HeatmapLayer = function (_MapLayer) {
336336
return roundResults(accumulateInGrid(points, leafletMap, getBounds(leafletMap)));
337337
};
338338

339-
var data = getDataForHeatmap(this.props.points, this.props.map);
339+
var data = getDataForHeatmap(this.props.points, this.context.map);
340340

341341
this._heatmap.clear();
342342
this._heatmap.data(data).draw(this.getMinOpacity(this.props));

0 commit comments

Comments
 (0)