kemayo / maphilight

jQuery plugin that adds highlighting to image maps
http://davidlynch.org/projects/maphilight/docs/
MIT License
491 stars 278 forks source link

Not highligh on the multiple imges i.e. multiple ploygons there should be some orders of ploygons #83

Closed alicerommi closed 5 years ago

alicerommi commented 6 years ago

I have 27+ images which are showing in the document but this lib does'nt work on multiple images in my case Can you please tell me how i will set the orders of ploygons or images.

shivangi-c commented 5 years ago

Do you mean to say that you want to highlight multiple polygons?

I took random ids of polygons and put the hilight code (that I found somewhere on the internet) in interval of 3 seconds.

setInterval(function(){
 data = $('#id').data('maphilight') || {};
 data.alwaysOn = !data.alwaysOn;
 $('#id').data('maphilight',data).trigger('alwaysOn.maphilight');
}, 3000);

This can be modified as per your requirements.

alicerommi commented 5 years ago

the issue has been fixed.