aurora-opensource / streetscape.gl

Visualization framework for autonomy and robotics data encoded in XVIZ

Home Page:http://www.streetscape.gl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

juzi5230 opened this issue · comments

commented

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]
    }),