Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 图层显隐组件 LayerSwitch 新增单选模式 #2211

Merged
merged 6 commits into from
Dec 25, 2023

Conversation

Dreammy23
Copy link
Contributor

[English Template / 英文模板]

🤔 这个变动的性质是?

  • [☑️] 新特性提交

💡 需求背景和解决方案

1. 要解决的具体问题

图层显隐组件只有多选模式,在遥感场景里需要一次只展示一个图层,因此需要添加单选模式

2. 列出最终的 API 实现和用法

在原有 checkbox 模式下,新增 radio 相关样式作为单选按钮,并增加布尔类型的 multiple 属性,值为 true 表示多选,值为 false
表示单选。默认值为 true。

3. 涉及UI/交互变动需要有截图或 GIF

image

@lzxue lzxue merged commit 0f99cd2 into master Dec 25, 2023
5 of 6 checks passed
@lzxue lzxue deleted the feat/1222-layer-switch branch December 25, 2023 03:35
lzxue pushed a commit that referenced this pull request Jan 10, 2024
* feat: layerSwitch组件新增单选属性

* chore: 更新markdown路径

* feat: layerSwitch组件添加单选模式

* chore: 恢复setting配置

* chore: 删除调试代码

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>
lzxue added a commit that referenced this pull request Jan 10, 2024
* fix: fillImage中uniform没对齐的bug

* feat: 适配天地图的底图

* chore: 修改天地图map中lngLatToCoord的方法实现

* feat: 添加天地图的markerContainer,但是不能更新其定位

* fix: marker和popup在地图拖动时不跟随的bug

* feat: 图层显隐组件 LayerSwitch 新增单选模式 (#2211)

* feat: layerSwitch组件新增单选属性

* chore: 更新markdown路径

* feat: layerSwitch组件添加单选模式

* chore: 恢复setting配置

* chore: 删除调试代码

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* Fix raster webgl1 (#2213)

* chore: g-device version & dev command

* fix: raster g.LUMINANCE 回滚到webgl1

* chore: publish (#2214)

* fix: single component data texture (#2215)

* fix: 修复图层显隐控件LayerSwitch单选模式下未默认展示单个图层问题 (#2218)

* fix: 修复图层显隐控件LayerSwitch单选模式下未默认展示单个图层问题

* feat: 图层显隐控件选择模式更新时,销毁图层内容重建

* chore: 修复空格

* chore: 新增todo

* feat: 修改单选模式只显示第一个图层逻辑到onAdd函数中

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* chore: multiband rgb raster parse (#2219)

* chore: multiband rgb raster parse

* fix: 单测

* chore: publish (#2220)

* fix: 修复配置更新时,处理单选模式图层问题 (#2221)

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* Update site&新增 raster ndi 计算 (#2222)

* feat: 添加归一化指数 parse

* chore: 更新文档

* Fix encode update (#2229)

* fix: encode update

* fix: encode update

* chore: publish (#2230)

* fix: 修复图层隐藏时,LayerPopup 未跟随隐藏的问题 (#2231)

* chore: publish (#2232)

* fix: 修正L7Plot官网图表示例按钮跳转链接 (#2233)

* fix: 修复配置更新时,处理单选模式图层问题

* feat: 修改函数名

* fix: 修正L7Plot官网图表示例按钮跳转链接

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* chore: publish (#2235)

* Migrate tile layer (#2236)

* fix: 修复栅格瓦片显示

* fix: 修复冲突

* chore: renderer ts  定义

* docs: add 矢量瓦片demo

* fix: clear depth & stencil before rende mask

* chore: update tile snapshot

* chore: update tile vector snapshot

---------

Co-authored-by: yuqi.pyq <yuqi.pyq@antgroup.com>

* chore: add threejs demo (#2245)

* chore: add threejs demo

* docs: add screenshot url

---------

Co-authored-by: zhnny <zhanny@LAPTOP-1UJN7PP7.localdomain>

* 支持 WebGPU 渲染 (#2225)

* fix: webgpu point fill example

* fix: adjust order of varying in fill image shader

* fix: remove redundant varying in extrude vert shader

* fix: recreate main & depth rt when resizing

* fix: load image in webgpu

* fix: heatmap

* fix: heatmap grid3d in webgpu

* fix: heatmap grid3d in webgpu

* fix: line

* fix: change readpixel from sync to async

* fix: resize picking fbo

* fix: picking in webgpu

* fix: arc line layer

* fix: use diagnosticDerivativeUniformity in water demo

* fix: add render cache

* fix: point text layer

* chore: update point text layer snapshot

* fix: raster layer

* chore: add screenshot callback on test cases

* chore: sleep

* chore: cancel point image test case for now

* fix: 合并冲突

* fix: fillImage中uniform没对齐的bug

* chore: 天地图导出类型

---------

Co-authored-by: huyang <huyang@uinnova.com>
Co-authored-by: Dreammy23 <caomengyuan2015@163.com>
Co-authored-by: 谨欣 <echo.cmy@antgroup.com>
Co-authored-by: @thinkingGIS <lzx199065@gmail.com>
Co-authored-by: xiaoiver <yuqi.pyq@antgroup.com>
Co-authored-by: heiyexing <oujinhui.ojh@antgroup.com>
Co-authored-by: zhnny <58084743+zhnny@users.noreply.github.com>
Co-authored-by: zhnny <zhanny@LAPTOP-1UJN7PP7.localdomain>
Co-authored-by: lzxue <120635640@qq.com>
lzxue added a commit that referenced this pull request Jan 16, 2024
* fix: fillImage中uniform没对齐的bug

* feat: 适配天地图的底图

* chore: 修改天地图map中lngLatToCoord的方法实现

* feat: 添加天地图的markerContainer,但是不能更新其定位

* fix: marker和popup在地图拖动时不跟随的bug

* feat: 图层显隐组件 LayerSwitch 新增单选模式 (#2211)

* feat: layerSwitch组件新增单选属性

* chore: 更新markdown路径

* feat: layerSwitch组件添加单选模式

* chore: 恢复setting配置

* chore: 删除调试代码

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* Fix raster webgl1 (#2213)

* chore: g-device version & dev command

* fix: raster g.LUMINANCE 回滚到webgl1

* chore: publish (#2214)

* fix: single component data texture (#2215)

* fix: 修复图层显隐控件LayerSwitch单选模式下未默认展示单个图层问题 (#2218)

* fix: 修复图层显隐控件LayerSwitch单选模式下未默认展示单个图层问题

* feat: 图层显隐控件选择模式更新时,销毁图层内容重建

* chore: 修复空格

* chore: 新增todo

* feat: 修改单选模式只显示第一个图层逻辑到onAdd函数中

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* chore: multiband rgb raster parse (#2219)

* chore: multiband rgb raster parse

* fix: 单测

* chore: publish (#2220)

* fix: 修复配置更新时,处理单选模式图层问题 (#2221)

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* Update site&新增 raster ndi 计算 (#2222)

* feat: 添加归一化指数 parse

* chore: 更新文档

* Fix encode update (#2229)

* fix: encode update

* fix: encode update

* chore: publish (#2230)

* fix: 修复图层隐藏时,LayerPopup 未跟随隐藏的问题 (#2231)

* chore: publish (#2232)

* fix: 修正L7Plot官网图表示例按钮跳转链接 (#2233)

* fix: 修复配置更新时,处理单选模式图层问题

* feat: 修改函数名

* fix: 修正L7Plot官网图表示例按钮跳转链接

---------

Co-authored-by: 谨欣 <echo.cmy@antgroup.com>

* chore: publish (#2235)

* Migrate tile layer (#2236)

* fix: 修复栅格瓦片显示

* fix: 修复冲突

* chore: renderer ts  定义

* docs: add 矢量瓦片demo

* fix: clear depth & stencil before rende mask

* chore: update tile snapshot

* chore: update tile vector snapshot

---------

Co-authored-by: yuqi.pyq <yuqi.pyq@antgroup.com>

* chore: add threejs demo (#2245)

* chore: add threejs demo

* docs: add screenshot url

---------

Co-authored-by: zhnny <zhanny@LAPTOP-1UJN7PP7.localdomain>

* 支持 WebGPU 渲染 (#2225)

* fix: webgpu point fill example

* fix: adjust order of varying in fill image shader

* fix: remove redundant varying in extrude vert shader

* fix: recreate main & depth rt when resizing

* fix: load image in webgpu

* fix: heatmap

* fix: heatmap grid3d in webgpu

* fix: heatmap grid3d in webgpu

* fix: line

* fix: change readpixel from sync to async

* fix: resize picking fbo

* fix: picking in webgpu

* fix: arc line layer

* fix: use diagnosticDerivativeUniformity in water demo

* fix: add render cache

* fix: point text layer

* chore: update point text layer snapshot

* fix: raster layer

* chore: add screenshot callback on test cases

* chore: sleep

* chore: cancel point image test case for now

* fix: 合并冲突

* fix: fillImage中uniform没对齐的bug

* chore: 天地图导出类型

* feat: wms 支持 url service

* feat: tdt fit bounds

* docs: 补充 polygon linear demo

---------

Co-authored-by: huyang <huyang@uinnova.com>
Co-authored-by: Dreammy23 <caomengyuan2015@163.com>
Co-authored-by: 谨欣 <echo.cmy@antgroup.com>
Co-authored-by: xiaoiver <yuqi.pyq@antgroup.com>
Co-authored-by: heiyexing <oujinhui.ojh@antgroup.com>
Co-authored-by: zhnny <58084743+zhnny@users.noreply.github.com>
Co-authored-by: zhnny <zhanny@LAPTOP-1UJN7PP7.localdomain>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants