bjornd / jvectormap

jvectormap.com
GNU Affero General Public License v3.0
1.39k stars 431 forks source link

zoomStep is not defined #415

Open RugnirViking opened 7 years ago

RugnirViking commented 7 years ago

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.

awudarowicz commented 7 years ago

Same here :(

dorianrod commented 6 years ago

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 ?

dorianrod commented 6 years ago

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.

Pxeba commented 2 years ago

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.

wash-dev commented 7 months ago

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?