I use the maphilight.js script ( http://davidlynch.org/projects/maphilight/docs/ ) to select areas on a custom room map.
When changing the screen resolution for proportional display of areas, I apply the following code:
$(window).on('resize', function() { $('.map').maphilight({strokeColor: '424d5c'}); }); The map picture is reduced according to the css. Areas should also decrease. It works on the desktop, there is no on the iPad.
Who uses this library, tell me where to dig? So far, I have come up with the idea of updating the page, when updating everything is clear, with the usual change of portrait-landscape - no .
UPD.
At the request of a colleague, I will add a question - when the orientation changes on the iPad, the resize event is triggered (checked by changing the color of the block), i.e. ** maipilight function is not reinitialized on AIPAD **. At the same time, on the desktop, when the window size is changed, the maphilight function is reinitialized!