0

I have an image that displays a parking lot. I want to make parking slots clickable and connect them with records in salesforce using lwc. Leaflet-rastercoords seems a good tool to achieve this but I have difficulty in implementing it in lwc with VScode. Anyone has tackled a similar task?

KostasV
  • 3
  • 1

1 Answers1

0

I know this can be done in HTML with an Image-Map. That also supports the use of Javascript functions.

I'm not sure how LWC in Salesforce works with HTML, but maybe you can use it in there?
https://www.w3schools.com/html/html_images_imagemap.asp

Mike de Bie
  • 66
  • 2
  • 7
  • My problem is more salesforce-oriented, I can only import this image as a Static Resource and then it's non-editable. Any solution regarding this? – KostasV Mar 17 '21 at 11:10
  • This guy seems to have been able to make it work. He made a clickable map using images in Salesforce Lightning. Wish I could help more, but I don't have Salesforce to fiddle around in... – Mike de Bie Mar 17 '21 at 15:18
  • It's a nice example anyway thank you for your time. – KostasV Mar 17 '21 at 16:18