-
Notifications
You must be signed in to change notification settings - Fork 512
Closed
Description
maptalks's version and what browser you use?
Issue description
- not use forEach
this.forEachGeo(this.checkGeo, this);
for (let i = 0, len = this.layer._geoList.length; i < len; i++) {
this.checkGeo(this.layer._geoList[i]);
}
const extent2D = painter.get2DExtent(this.resources, TEMP_EXTENT);
const extent2D = painter.get2DExtent(this.resources, TEMP_EXTENT);
if (!extent2D || !extent2D.intersects(this._displayExtent)) {
return;
}
if (painter.hasPoint()) {
this._hasPoint = true;
}
maptalks.js/src/renderer/geometry/Painter.js
Line 406 in c647ad2
this.containerOffset = offset || map._pointToContainerPoint(renderer.southWest)._add(0, -map.height);
this.containerOffset = offset || layer.containerOffset || map._pointToContainerPoint(renderer.southWest)._add(0, -map.height);
- Do not use intrinsic functions
maptalks.js/src/core/Canvas.js
Line 841 in c647ad2
function sector(ctx, x, y, radius, startAngle, endAngle) { |
maptalks.js/src/core/Canvas.js
Line 796 in c647ad2
function bezierEllipse(x, y, a, b, b1) { |
maptalks.js/src/core/Canvas.js
Line 608 in c647ad2
function interpolate(t0, t1, x1, y1, bx1, by1, bx2, by2, x2, y2) { |
maptalks.js/src/core/Canvas.js
Line 636 in c647ad2
function getCubicControlPoints(x0, y0, x1, y1, x2, y2, x3, y3, smoothValue, t) { |
maptalks.js/src/core/Canvas.js
Line 420 in c647ad2
function fillWithPattern(p1, p2) { |
Please provide a reproduction URL (on any jsfiddle like site)
Metadata
Metadata
Assignees
Labels
No labels