Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
Adding custom DOM node to DeckGL IconLayer to display as icon

I'm trying to find a way of adding a custom DOM node and display it as an icon using DeckGL IconLayer.

I know that I can add a url to getIcon() or iconAtlas and it will display a custom icon but I would like to add an node which contains 2 images one in front of the other.

<div id="test.icon">
  <img alt="svg-icon" className={classes.svg} src="/path-to-foreground-image" />
  <img alt="pin" className={classes.pin} src="/path-to-background-image" />
</div>

The issue im facing is adding this node to my IconLayer. I have tried passing documet.getElementBtId("test.icon") to iconAtlas as explained in this article. It works when adding a single image but does not render the full node above.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!