image-map-creator icon indicating copy to clipboard operation
image-map-creator copied to clipboard

Integrate with HTML+JS

Open ghost opened this issue 5 years ago • 1 comments

Hi,

It's possible to integrate this in a HTMl page, load the image via JS or HTML/PHP, and the get the zones ouput via JS to save in a database? This is, remove the EXPORT buttons and do it via JS ?

ghost avatar Jul 18 '20 20:07 ghost

Yes, this is something that I wanted to do from the beginning. I made a demo app to demonstrate this: https://imagemapcreator.club1.fr. It is still online but it seems there is a problem with my script loading.

Anyway, most of the js logic is in this file: https://github.com/n-peugnet/demo-imc/blob/master/public/assets/js/script.js

This is still far from ideal but it can already be hacked a little bit.

n-peugnet avatar Jul 18 '20 23:07 n-peugnet