Image with clickable components

845 Views Asked by At

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?

1

There are 1 best solutions below

3
Mike de Bie On

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