Scroll Google Maps in iframe -


I have embedded Google Maps in my website via an iframe. I can not use the API at this point Because this is the reason why I am using IFrame.

Is there a way to scroll the IRF so that the top part of the Google Maps page (search bar, etc.).) Is not it visible to the user anymore?

If the page was hosted in the same domain, you would scrollTop and scrollLeft on Iframe.document.body Dhtml can use properties however this is not possible if you are hosting Google Maps from a remote server you will be unable to modify the hair frame content through the script.

Even if you can, it will always be a delicate solution if the structure of Google Maps has changed completely, then you have to update your Scrolltop / Left Mechensim. Users will still be able to click in the frame and drag up the scroll to scroll, or even use arrow keys.

Trying to fix the scroll position, then it will be possible to block the user from scrolling

ScrollTop Doc:

Should try to eliminate obstacles to use.


Comments