mirror of https://gitee.com/antv-l7/antv-l7
feat: 修复官网 canvasLayer demo 错误
This commit is contained in:
parent
e072a99bff
commit
70606f63fc
|
@ -68,6 +68,8 @@ function draw(option) {
|
|||
|
||||
points.map(point => {
|
||||
const pixelCenter = mapService.lngLatToContainer([ point.lng, point.lat ]);
|
||||
pixelCenter.x *= window.devicePixelRatio
|
||||
pixelCenter.y *= window.devicePixelRatio
|
||||
const rectStartX = pixelCenter.x - radius;
|
||||
const rectStartY = pixelCenter.y - radius;
|
||||
|
||||
|
|
Loading…
Reference in New Issue