streetscape.gl icon indicating copy to clipboard operation
streetscape.gl copied to clipboard

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

Open juzi5230 opened this issue 3 years ago • 0 comments
trafficstars

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

juzi5230 avatar Dec 10 '21 03:12 juzi5230