* fix: 多地图模式

* fix: getcustomdata 数据为空

* fix: map 支持 threejs 图层

* fix: lint error

* chore: add vercel-build

* chore: add vercel.json

* chore: add vercel.json

* fix: 地图高亮
This commit is contained in:
@thinkinggis 2022-12-01 18:37:25 +08:00 committed by GitHub
parent 50b6c2c227
commit eb35dd676b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5211 additions and 66 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,2 @@
### polygon
<code src="./demos/select.tsx"></code>

View File

@ -1289,6 +1289,7 @@ export default class BaseLayer<ChildLayerStyleOptions = {}>
}
public needPick(type: string): boolean {
const { enableHighlight = true, enableSelect = true } =
this.getLayerConfig();
// 判断layer是否监听事件;

View File

@ -117,7 +117,7 @@ export default class PixelPickingPlugin implements ILayerPlugin {
model.addUniforms({
u_PickingStage: PickingStage.HIGHLIGHT,
u_PickingColor: pickedColor,
// u_HighlightColor: highlightColorInArray.map((c) => c * 255),
u_HighlightColor: highlightColorInArray.map((c) => c * 255),
u_activeMix: selectMix,
u_CurrentSelectedId: pickedColor,
u_SelectColor: highlightColorInArray.map((c) => c * 255),