-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix picking in the polygon layer (#113)
* Fix picking in the polygon layer * Fix picking in the polygon layer
- Loading branch information
1 parent
4bc976e
commit 688eb4f
Showing
4 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ const NAV_CONTROL_STYLE = { | |
function Root() { | ||
const onClick = (info: PickingInfo) => { | ||
if (info.object) { | ||
console.log(JSON.stringify(info.object.toJSON())); | ||
console.log(info.object["BoroName"]); | ||
} | ||
}; | ||
|
||
|
@@ -66,10 +66,10 @@ function Root() { | |
extruded: false, | ||
wireframe: true, | ||
// getElevation: 0, | ||
pickable: false, | ||
pickable: true, | ||
positionFormat: "XY", | ||
_normalize: false, | ||
autoHighlight: true, | ||
autoHighlight: false, | ||
earcutWorkerUrl: new URL( | ||
"https://cdn.jsdelivr.net/npm/@geoarrow/[email protected]/dist/earcut-worker.min.js", | ||
), | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters