-
AuthorPosts
-
K Schneider Friend
K Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
May 22, 2013 at 7:59 pm #187697How can I disable the zoom
When you scroll down in a page with gMaps in it, it zooms in or out depending on if you go up or down in the websiteNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 23, 2013 at 11:10 am #493742You can do that this way
Open plugins/systemjagooglemapassets/script.js file
find
mapOptions.zoomControl = true;
change to
mapOptions.zoomControl = true;
mapOptions.disableDoubleClickZoom = true;
mapOptions.draggable=false;
mapOptions.keyboardShortcuts=false;
mapOptions.scaleControl=false;
mapOptions.scrollwheel=false;
mapOptions.streetViewControl=false;
Remember to clear cache from Admin area
Let me know if it helps
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
May 23, 2013 at 7:32 pm #493776sorry, not working :((
K Schneider FriendK Schneider
- Join date:
- September 2014
- Posts:
- 170
- Downloads:
- 70
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 11 times in 1 posts
May 23, 2013 at 7:39 pm #493778found it 🙂
find this
[PHP]
mapOptions.zoomControl = true;
mapOptions.zoomControlOptions = {
style: toolbar_control_style,
position: controlPos
}
} else {
mapOptions.zoomControl = false;
this.toolbar_control_style = null;
}
[/PHP]change to
[PHP]
mapOptions.zoomControl = true;
mapOptions.disableDoubleClickZoom = true;
mapOptions.draggable=false;
mapOptions.keyboardShortcuts=false;
mapOptions.scaleControl=false;
mapOptions.scrollwheel = false;
mapOptions.streetViewControl=false;
mapOptions.zoomControlOptions = {
style: toolbar_control_style,
position: controlPos
}
} else {
mapOptions.zoomControl = false;
mapOptions.scrollwheel = false;
mapOptions.disableDoubleClickZoom = true;
mapOptions.draggable=false;
mapOptions.keyboardShortcuts=false;
mapOptions.scaleControl=false;
mapOptions.scrollwheel = false;
mapOptions.streetViewControl=false;
this.toolbar_control_style = null;
}
[/PHP]maybe some more fine-tuning but it works for now
kan this be add to the next version?1 user says Thank You to K Schneider for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 24, 2013 at 4:23 am #493809I passed this to development team and they will add this option in new version JA Google Map plugin, you can check the status here: http://pm.joomlart.com/browse/CUSSER-511
1 user says Thank You to Ninja Lead for this useful post
tomoe Friendtomoe
- Join date:
- July 2007
- Posts:
- 27
- Downloads:
- 52
- Uploads:
- 1
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
January 10, 2014 at 7:55 pm #518096Ocean12’s trick works well, but it would be nice to be implemented in a new Google Map plugin version.
-
AuthorPosts
This topic contains 8 replies, has 5 voices, and was last updated by Adam M 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum