- This topic is empty.
-
AuthorPosts
-
July 30, 2014 at 11:49 pm #177071mintdesignerParticipant
I am using the google map iframe code. I want to disable map zooming when the user uses mousewheel to scroll the page but the map should be interactive when the user clicks on the map. I tried disabling by giving pointer-events: none , but it disables the zooming completely.
Please help.I have a reference similar to which I want the map to function
Reference Link : http://www.salttechno.com/contact-top-web-designers-pune-india/
My website link : http://fiveonlineclient.in/project/vizcom/
August 6, 2014 at 2:25 am #177892mintdesignerParticipantThanks for the reply. I am clueless about the api thing. I guess there has to be some specific code with api key which will be mentioned in the javascript source. If yes, how to find out the api key? Even in documentation, they have mentioned in second line of javascript. If I implement as it is, I am getting a london map. I need the one I registered for. Please help.
<script type=”text/javascript” src=”http://maps.google.com/maps/api/js?sensor=true”></script>
August 6, 2014 at 3:29 am #177896Paulie_DMemberI need the one I registered for.
You didn’t note it when you registered?
Better go look again.
August 8, 2014 at 6:27 am #178289mintdesignerParticipantThe registration has been done by the client. He has just sent me the link for the map from where I can use the embed code.
August 8, 2014 at 6:50 am #178292Paulie_DMemberThe registration has been done by the client.
Then you know where to get the Key….
August 13, 2014 at 6:26 am #178870mintdesignerParticipantThanks @ Soronbe. I found the solution.
October 20, 2016 at 3:34 pm #246788n00bctrlParticipantI used
<div class="overlay" onClick="style.pointerEvents='none'"></div>
[googlemaps https://mapsengine.google.com/map/embed?mid=some_map_id&w=100%&h=480]
.overlay {
background:transparent;
position:relative;
width:100%; /* your iframe width */
height:480px; /* your iframe height */
top:480px; /* your iframe height */
margin-top:-480px; /* your iframe height */
}There a good tutorial on it here: https://jonnyjordan.com/blog/disable-mouse-scroll-wheel-zoom-embedded-google-map-iframes/
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.