Imagemap in anvil

Yes definitely.
Not a custom html page for your main APP’s form.
Just for the image map.
Just like this:
https://anvil.works/build#clone:DDFKXOTPQNNKFRVH=JG2FCCK4GG25CHGJKG6CL2WA
This way you can easily build each map as a custom component and then use it in the visual designer just like any other component.
Now that I think at it, this approach could be generalised a little so to provide a “general” ImageMap component with:
-src: image base64 or url
-maps: a Json with the maps
and the click event returning which map was clicked.

Such component could be much more useful and could be included in Anvil’s StdLib.
Working on it. :wink:

BR

1 Like