jvectormap
jvectormap copied to clipboard
zoomStep is not defined
I am having trouble with an issue whereby even when I copy the exact code from the examples I get 'zoomStep is not defined' every time I try to scroll.
Same here :(
Hi, i encountered the same issue with the last minimized version. Is it fixed ? I could debug it but I don't know how to use SRC files. Which files do I need to include to use the library in the src directory ? All of them ?
ok, the issue was in minimized file ";var zoomStep;return scale>this.params.zoomMaxthis.baseScale?scale=this.params.zoomMaxthis.baseScale:scale<this.params.zoomMinthis.baseScale&&(scale=this.params.zoomMinthis.baseScale),"undefined"!=typeof anchorX&&"undefined"!=typeof anchorY&&(zoomStep=scale/this.scale".
I added "var zoomStep" and it seems to work.
In the current version 2.0.5 a variation of this problem still happens. I got the following error: ''assignment to undeclared variable zoomStep jvectormap ''. I noticed that the error occurs in ''setScale''.
It tries to change zoomStep without using this. You can change to this.zoomStep in the min file. It is not necessary to declare a new variable because it already exists.
I'm having the same problem but the zoom buttons aren't working either. I'm using jquery version 3.7.1 and jVectorMap 2.0.5 from the download page. Any solution?