Skip to content
New issue

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

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

Already on GitHub? # to your account

click the left mouse button on the layer, I didn't get the attributes of info and object #518

Open
juzi5230 opened this issue Dec 10, 2021 · 0 comments
Assignees

Comments

@juzi5230
Copy link

juzi5230 commented Dec 10, 2021

I use customLayers to show some icon using IconLayer.
when I click the left mouse button on the layer, I can't get the attributes of info and object

when I click computer touch screen on the layer, I can get them.

    new IconLayer({
      id: d => xx,
      data: xx,
      pickable: true,
      sizeScale:xx,
      getPosition: d => d.center,
      getSize: d => 84, 
      getIcon: d => ({
        url:  xx,
        width: 184,
        height: 200,
        anchorY: 155
      }),
      getPixelOffset: [0, -20]
    }),
@twojtasz twojtasz self-assigned this Jan 2, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants