Skip to content

Commit

Permalink
feat: add enablePickFeatures param
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Jul 27, 2022
1 parent 3f08aa7 commit 33fd8c3
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 960 deletions.
11 changes: 5 additions & 6 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ImageryLayer } from 'cesium';
import { mapStyle, SETTINGS } from './mapstyle';
import CesiumMap from './utils/map';


Expand All @@ -11,11 +10,11 @@ const BaseMap: Layer.LayerItem = {
}

const PbfExample1: Layer.LayerItem = {
id: 'macrostrat',
layerName: 'macrostrat',
url: mapStyle,
token: SETTINGS.mapboxAccessToken,
layerName: 'pbf',
id: 'pbf',
method: 'pbf',
url: 'https://demotiles.maplibre.org/style.json',
viewPort: [116.3, 39.9, 15000000]
}

const PbfExample2: Layer.LayerItem = {
Expand Down Expand Up @@ -60,7 +59,7 @@ const removeBtn = document.getElementById('remove')
if (removeBtn) {
removeBtn.onclick = () => {
if (imageryLayer) {
if(MapObj.removeImageLayer(imageryLayer)) imageryLayer = null
if (MapObj.removeImageLayer(imageryLayer)) imageryLayer = null
}
}
}
Loading

1 comment on commit 33fd8c3

@vercel
Copy link

@vercel vercel bot commented on 33fd8c3 Jul 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.