Icon Layer Not Rendering
See original GitHub issueI 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
})
]
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
The getSize missing was what was keeping it from rendering. Thanks!