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

Fix 矢量瓦片拾取&线纹理&一些lint fixed #1598

Merged
merged 11 commits into from
Feb 14, 2023
Merged

Conversation

lzxue
Copy link
Contributor

@lzxue lzxue commented Feb 13, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

@github-actions
Copy link
Contributor

ChatGPT's response about dev-demos/tile/Vector/demos/event.tsx:

A new file was created at dev-demos/tile/Vector/demos/event.tsx. This file contains a React component that renders a map. The map has a PolygonLayer that uses the qhd_bianhua_jiance source layer. The layer has a click event handler that console logs the event.

@github-actions
Copy link
Contributor

ChatGPT's response about dev-demos/tile/Vector/event.md:

A new file was created at /dev-demos/tile/Vector/event.md with the following contents:

---
group: 
    path: 'vector'
    title: '矢量瓦片'
    order: 1
title: 瓦片交互
order: 0
---

### 瓦片交互

<code src="./demos/event.tsx"></code>

@github-actions
Copy link
Contributor

ChatGPT's response about packages/core/src/services/interaction/PickingService.ts:

  • A class called PickingService was created which implements IPickingService.
  • In the init() function, the size of the container is retrieved and the pickBufferScale is set.
  • In the pickingAllLayer() function, the layers are filtered by whether or not they need to be picked, and the pickingLayers() function is called.
  • In the pickingLayers() function, the framebuffer is retrieved and the color is decoded. If the color is not [0, 0, 0, 0], the rawFeature is retrieved and the feature is pushed into the features array.
  • In the isPickingAllLayer() function, it is checked if the layer needs to be picked and if the interactionService is dragging. If both conditions are not met, the layer is picked.
  • In the renderLayers() function, the layers are filtered by whether or not they need to be picked. If the layer needs to be picked, the framebuffer is retrieved and the color is decoded. If the color is not [0, 0, 0, 0], the rawFeature is retrieved and the feature is pushed into the features array.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/layers/src/line/models/line.ts:

This diff changes the LineModel class in the line module. A textureEventFlag property is added, which is set to true when the initModels method is called. The updateTexture method is called when the imageUpdate event is emitted by the iconService, and it sets the u_texture uniform to a new Texture2D object.

@github-actions
Copy link
Contributor

ChatGPT was unable to process the response about packages/layers/src/tile/service/TilePickService.ts

@github-actions
Copy link
Contributor

ChatGPT's response about packages/layers/src/tile/service/TileSourceService.ts:

This diff changes the TileSourceService class to add a method for combining features.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/layers/src/tile/tileFactory/VectorTile.ts:

This diff adds a vector tile layer to a map. The layer is created with a source and some options. A mask is added to the layer if needed. Finally, the layer is added to the map.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/site/docs/api/tile/common/options.zh.md:

This diff changes the sourceLayer and featureId options for a point layer.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/source/src/index.ts:

This diff imports the geojsonvt parser and the rasterRgb transform, and exports the rasterDataTypes object.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/source/src/parser/geojson.ts:

This diff changes the getFeatureID function in the geojson.ts file in the source package. The function now returns the value of the key property from the feature.properties object, multiplied by 1.

@github-actions
Copy link
Contributor

ChatGPT's response about packages/source/src/source.ts:

This diff updates the Source class to allow for clustering of data points, and also adds the ability to cancel the calculation of the data point extent.

@lzxue lzxue merged commit 5a96e01 into master Feb 14, 2023
@lzxue lzxue deleted the feat_band_operation branch February 14, 2023 02:25
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.

1 participant