zhouyupeng
zhouyupeng
The way you are using in your snippet is the correct way, I think. > But complex objects should not be used as dependencies as they cause trouble in React!...
you mean changing the coords of LineString while "modifystart" triggered and "modifyed" have not be triggrred? threre's a way to change the coordinates directly by `feature.getGeometry().setCoordinates([...])` by clicking without a...
所以视频里是线和点是LineString和circle组合出来的,modify只针对单个geometry。 你需要变更完点点位置重画LineString
Or maybe you should just use linstring applying circle style in every coordinate. That should work
你的demo代码不能说明你的问题 出现白屏是tile瓦片没有加载到?你使用的layer是?source是? global: true的话,我猜测是view在判断显示范围的时候会使用这个projection所给定的extent,试一下把你期望的projection的extent设置为worldExtent或者不给值
mabye you can try deck.gl
[getURLFromTemplate](https://github.com/antvis/L7/blob/22866677da7544c79660006531a972b9ef35f33a/packages/utils/src/tileset-manager/utils/tile-url.ts#L44) 支持传入自定义转换函数,入参有`bounds` ,自己转一下就行了 ``` scene.on('loaded', () => { const layer = new RasterLayer() .source(url, { parser: { type: 'rasterTile', tileSize: 256, zoomOffset: 0, getURLFromTemplate: (url, { bounds }) => {...
https://github.com/antvis/L7/issues/2651#issuecomment-3512923951
位置: 就可以。 层级:infowindow 在高德管理的 dom 内,infowindow 的层级本身应该是高于 marker 的。如果你本身在高德 container 外部盖了一层(必定高于高德 container),智能自己用 map.coordToContainer(coord) 换相对坐标,自己做一层 overlay