Google Maps scolling

Hi,

  1. I I added a Google Map in my post. For this I used the shortcode from your Demo: http://demo.theme.co/integrity-1/shortcodes/map/

    [map no_container=“true”][/map]

But the scolling is still active. I like to have the message “Use ctrl + scroll to zoom the map”.

Can you help me with this?

  1. And what is the difference in using the shortcode [map] or just to include the Map with the iframe ?

Michael

Hey Michael,

Here are my answers to your questions:

I tested the shortcode and I see the Use ctrl + scroll to zoom the map out of the box. Please first ensure Pro is up to date and there are no plugins overriding the Map Embed of Google. After you’ve done this and the issue persists, please give us the exact URL of the page with the map and access to your WordPress admin in a Secure Note.

Our Map Shortcode sets a fixed 16:9 aspect ratio for the map and maintains it through out the screen sizes.

Pasting the iframe directly, the aspect ratio will vary.

Thanks.

Is the “Use ctrl + scroll to zoom” on the map only availiable in Pro? I use the regular version of X.

Hi @michaelxxx,

Map is the same for Pro and X. If you are using X, please make sure you are using the latest version too.

My version of X is always up to date.

Please check my post:

On the bottom you can find the map with scolling still active.
This is how I have included the map:

 [map no_container="true"]<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/d/u/1/embed?mid=1cIT144_LNUCrXibgOrUQjMFtRjZplxiR"></iframe>[/map]

Hello @michaelxxx,

I have checked the page and seen the map display.

 [map no_container="true"]<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.com/maps/d/u/1/embed?mid=1cIT144_LNUCrXibgOrUQjMFtRjZplxiR"></iframe>[/map]

Please understand that the map shortcode, as seen above, is just a container code of the Google Map embed code. It is used to display the map in your post. Take notice that the map embed code is an iframe. Be advised that any contents inside the iframe can only be controlled from the source URL. Any attributes like scrolling are coming from Google. So even if scrolling is set to NO, if Google enables the scrolling all the time, then it will always be turned ON. Take this link for example:

Be aware that Google has removed the ability to turn off the scrolling. Take a look at this developer guide. You can no longer find any reference to the scrolling option.

Hope this explains more about scrolling in the embded code.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.