Viewing 10 replies - 1 through 10 (of 10 total)
  • What is the default zoom level you defined on the settings page? What happens when you set one to id=1 and the other to id=2?

    Thread Starter architeqt

    (@architeqt)

    Hi,

    My default zoom level is set to “4”.

    Per your suggestion, I did this:

    [nwm_map id=”2″ zoom=”3″]
    [nwm_map id=”1″ zoom=”5″]

    The result is clearly that the two maps are at different zoom levels, but the map id=1, is set to “5” while it’s showing a level much lower than that…

    I tried this to see what happens, switching the zoom levels:

    [nwm_map id=”2″ zoom=”5″]
    [nwm_map id=”1″ zoom=”3″]

    The two maps did not change at all.

    https://www.wanderluster.net/gallery/ukraine-the-black-sea/

    Any thoughts?

    Thanks,
    Samer

    I don’t see anything weird in the code itself, but I will do some more testing next week. Maybe the gmap3 library does some kind of auto adjusting to what it believes to be a better zoom level.

    Thread Starter architeqt

    (@architeqt)

    Thanks for the reply! And thank you for taking another look and doing more testing, I appreciate it! My site has a LOT of maps, and some just don’t work right without the specific zoom level shortcode.

    Thanks again, and I look forward to hearing back from you next week!
    Samer

    Can you open the /js/wpsl-gmap.js file and then on line 89 place a , after the } and after that this piece of code.

    events:{
       mouseover: function( map ) {console.log( 'Current zoom is: ' + map.getZoom() + ' expected zoom is: ' + parseInt( nwmLocations.settings.zoomLevel ) );
       }
    }

    What are some other pages where the zoom looks wrong? I can’t replicate it, but the above code will show me in the Firebug console what the current zoom level is and what it’s supposed to be.

    Thread Starter architeqt

    (@architeqt)

    Hi Tjimen,

    I can’t seem to find the /js/wpsl-gmap.js file. I do have the following files under /js —
    – /js/nwm-gmap3.js
    – /js/gmap3.js
    – /js/gmap3.min.js

    Any idea why I wouldn’t find it in the Plugin Editor?

    Also, here are the pages you can test which have a zoom level specified in the shortcode other than the default level (my default zoom level is set to “4”):

    https://www.wanderluster.net/gallery/ukraine-the-black-sea/
    Zoom level = 5

    https://www.wanderluster.net/gallery/moors-maghreb/
    Zoom level = 3

    https://www.wanderluster.net/gallery/himalayan-happiness/
    Zoom level = 2

    https://www.wanderluster.net/gallery/the-roman-empire/
    Zoom level = 1

    Thank you!
    Samer

    Oops, the /js/wpsl-gmap.js is from my other plugin ?? You should edit the /js/nwm-gmap3.js

    Thread Starter architeqt

    (@architeqt)

    OK great — I added that bit of code as you described, and I hope I did it right and that it works!!

    Let me know if it does or doesn’t!

    Thank you!
    Samer

    Thread Starter architeqt

    (@architeqt)

    Hi again Tjimen!

    I checked the page after editing the code at Line 89 and it broke all the maps —

    So i tried to insert the code up and down a few lines, in case the line number was wrong, and sure enough, it worked when I inserted it in Line 87!

    Let me know if it’s working for you the way you had intended now.

    Thanks!!
    Samer

    It’s not working because the code is in the wrong place. Can you email me at info at tijmensmit.com, then I will send you the modified file and you can just upload that one.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Zoom Level Issue’ is closed to new replies.