[TASK] CGL - Optimize returns and unnecessary math
This commit is contained in:
parent
c7b58d5743
commit
c9458ffcae
3 changed files with 5 additions and 11 deletions
lib/map
|
@ -73,7 +73,7 @@ define(["leaflet", "rbush"],
|
|||
return [x, y, x + width, y + height];
|
||||
}
|
||||
|
||||
var c = L.TileLayer.Canvas.extend({
|
||||
return L.TileLayer.Canvas.extend({
|
||||
onAdd: function (map) {
|
||||
L.TileLayer.Canvas.prototype.onAdd.call(this, map);
|
||||
if (this.data) {
|
||||
|
@ -235,6 +235,4 @@ define(["leaflet", "rbush"],
|
|||
}).forEach(drawLabel);
|
||||
}
|
||||
});
|
||||
|
||||
return c;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue