瓦片图层内部实现架构优化
#2333
Replies: 1 comment 2 replies
-
多 Model 也是一个方案,单个 Model 实现一个瓦片的渲染,需要权衡用来当作瓦片图层实现,对整个 model 的管理的成本带来的性能问题,现在属性更新机制现在是做到图层上面的,与 model 是分离的,属性的更新会导致所有 model 的重新构建问题。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ref
现在瓦片内部实现的依赖关系:
对于瓦片,现在的 BaseLayer 其实是一个复合图层概念,但复合图层的概念没有抽离,导致现在的逻辑晦涩,对象关系依赖循环。L7 通过基本图形透出瓦片的概念,与 Mapbox API 风格一致,但 Mapbox 采用了瓦片坐标系架构,内置的渲染单位为瓦片单元,在概念上与 L7 的基础图层不对等,故不存在图层嵌套情况。要优化 L7 的瓦片图层代码逻辑:
Beta Was this translation helpful? Give feedback.
All reactions