Recalculate image map after window resize

五迷三道 提交于 2019-12-04 17:14:42

You can use JQuery plugin ImageMapster for your image-maps. This plugin can dinamically re-count areas after resizig and have other usefull features.

And ever if you deside to write own solution, I suppose explore the code of the plugin can help you with your resizing task.

The solution should be the same as it is for the rect shape, because you're just scaling co-ordinates in both cases.

A point is a point, and both shapes are made up of points.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!