question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icon Layer Not Rendering

See original GitHub issue

I am trying to create an Icon Layer with a png icon, however the layer is not rendering. I have done some debugging and found that the IconLayer render function is only accessing the first point in the dataset, and even that point is not getting rendered. There are also no error messages thrown so I have no idea where to look for the problem.

I have attached my data file, app.js and deckgl-overlay.js files.

const layers = [ 
      new IconLayer({
        id: 'icon-layer',
        getPosition: d => {d.position; console.log(d)}, //this log is only triggered once.  should be triggered for every point in dataset
        getColor: d => [255, 0, 128],
        getAngle: d => d.heading,
        getIcon: d => d.icon,
        iconAtlas: this.props.iconAtlas,
        iconMapping: ICON_MAPPING,
        sizeScale: 1,
        opacity: 1,
        pickable: true,
        radiusMinPixels: 2,
        radiusMaxPixels: 30,
        visible: true,
        ...this.props
      })
]

files.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ibgreencommented, Oct 19, 2017

I believe this is not the first time someone has had this issue. Maybe we should add a minPixelSize type prop to prevent icons from becoming invisible with default settings?

0reactions
mtholdefercommented, Oct 19, 2017

The getSize missing was what was keeping it from rendering. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Icon Layer Not Rendering · Issue #1020 · visgl/deck.gl - GitHub
I am trying to create an Icon Layer with a png icon, however the layer is not rendering. I have done some debugging...
Read more >
iconlayer is not displaying in deck.gl - Stack Overflow
I used everything as documented. I am not doing any experiment. Still icon is not visible on the map. Live Demo. https://codesandbox.io/s/ ...
Read more >
Shape layers rendering in preview, but not when I output them ...
Edit: They were guide layers. I'm an idiot. Hey all,. I have some shape layers with multiple shapes inside of them. They render...
Read more >
Managing layers in After Effects - Adobe Support
Learn about managing layers in After Effects, layer switches in the Timeline panel, and view and change layer information.
Read more >
Solved: Symbol not rendering when loading a Feature Layer
The reason that a ArcGISDynamicMapServiceLayer does is because ArcGIS Server is returning an image and not the actual geometry like the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found