jvectormap icon indicating copy to clipboard operation
jvectormap copied to clipboard

zoomStep is not defined

Open RugnirViking opened this issue 7 years ago • 5 comments

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.

RugnirViking avatar Apr 14 '17 22:04 RugnirViking

Same here :(

awudarowicz avatar Apr 21 '17 08:04 awudarowicz

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 avatar May 17 '18 10:05 dorianrod

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.

dorianrod avatar May 17 '18 10:05 dorianrod

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.

Pxeba avatar May 05 '22 17:05 Pxeba

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?

wash-dev avatar Jan 30 '24 17:01 wash-dev