Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coordinates are set to NaN #126

Open
nesanmano opened this issue Apr 7, 2022 · 1 comment
Open

Coordinates are set to NaN #126

nesanmano opened this issue Apr 7, 2022 · 1 comment

Comments

@nesanmano
Copy link

The library seems to not be working properly.

I get the following I tried to it with jQuery 3.6.0:

image

Below is a part of my HTML file

....

$(document).ready(function(e) {

$('img[usemap]').rwdImageMaps();

});

</script> <script src="js/jquery.rwdImageMaps.js"></script> <script src="js/jquery.rwdImageMaps.min.js"></script>
</body>
</html>
@imuraretu
Copy link

You have to set the height and width attributes for which you initially created the map.
E.g. <img src="..." width="600" height="400">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants