Page 1 of 2
How can I scroll past the map?
Posted: 09 Feb 2015, 11:14
by notblackjack
Hello,
I recently put a phoca map on my website, which only has one page (yes, this is intended), and I want to know if there is a way to continue scrolling down even if my mouse is hovering over the map. Currently, if I am scrolling down and my mouse comes over the map I stop scrolling down. When this happens I need to position my mouse next to the map in order to continue scrolling. Is there a way to get rid of this problem because this is very annoying.
Thanks,
Tommy
PS. I am so very sorry if this was posted before, I did check if this had been posted already but I couldn't find anything.
Re: How can I scroll past the map?
Posted: 12 Feb 2015, 00:00
by Jan
Hi, unfortunately - this behaviour cannot be managed in Phoca Maps and I think, it cannot be managed in Google Maps, this is the behaviour of html/css and the browser settings
So I think, this is more a question on browser developers
Re: How can I scroll past the map?
Posted: 26 Mar 2015, 16:14
by jackprince
Take a look at
http://bdadam.com/blog/simple-usability ... -maps.html
I currently try to make it work with PhocaMaps.
So far no success.
First comment is very interesting as well.
Edit:
So far it seems if I try to use 'mapPhocaMapPlgPM1' it sees it as undefined and setOptions won't work. :/
Re: How can I scroll past the map?
Posted: 26 Mar 2015, 17:04
by jackprince
Solved it I think:
On line 445 in phocampas.php
These are set and somehow get triggered even though mouse scrolling is deactivated in the settings for the map.
Code: Select all
google.maps.event.trigger(markerPhocaMarker1PlgPM1, 'click');
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'DOMMouseScroll', CancelEventPhocaMapPlgPM1);
google.maps.event.addDomListener(tstPhocaMapPlgPM1, 'mousewheel', CancelEventPhocaMapPlgPM1); }
}
Solution:
Code: Select all
if($mapp->scrollwheelzoom != 0){
$output .= $map->setListener();
}
Re: How can I scroll past the map?
Posted: 26 Mar 2015, 23:55
by Jan
Hi, thank you very much for the guide.
Jan
Re: How can I scroll past the map?
Posted: 27 Mar 2015, 11:33
by jackprince
Jan wrote:Hi, thank you very much for the guide.
My pleasure Jan. Knowing your great extensions for years and it is a pleasure for me to be helpful.
Re: How can I scroll past the map?
Posted: 23 Feb 2016, 21:22
by Jan
Hi, set in version 3.0.3
Thank you, Jan
Re: How can I scroll past the map?
Posted: 16 Jun 2016, 08:42
by monkoid
Jan wrote:Hi, set in version 3.0.3
Thank you, Jan
Hi,
I verified I was indeed using version 3.0.3 on my Joomla project (3.5) - but when I disable "Scroll Wheel Zoom" and then try to scroll past the map, it still blocks and I need to get my mouse cursor outside the map in order to get the page moving again.
I'd like to get the behaviour described here...
jackprince wrote:Take a look at
http://bdadam.com/blog/simple-usability ... -maps.html
I currently try to make it work with PhocaMaps.
So far no success.
First comment is very interesting as well.
Edit:
So far it seems if I try to use 'mapPhocaMapPlgPM1' it sees it as undefined and setOptions won't work. :/
...but I don't know much about programming so I was wondering if someone could tell me what exactly I should do. What I'd like to obtain is the same behaviour as the one on the demo.
EDIT : I just noticed I was using com_phocamaps_v3.0.3 but with plg_content_phocamaps_v3.0.2. I reinstalled and reconfigured with both 3.0.3 files and now scrolling when hovering the map isn't blocked anymore. Still looking to get the above mentioned behaviour though, so any advice would still be welcome on how to implement it. Thanks in advance
Re: How can I scroll past the map?
Posted: 16 Jun 2016, 09:27
by babouz44
Hi,
Do you also use the 3.0.3 "plugin" version ?
Re: How can I scroll past the map?
Posted: 16 Jun 2016, 10:31
by monkoid
babouz44 wrote:Hi,
Do you also use the 3.0.3 "plugin" version ?
Yes - I edited my post to add that I saw my plugin was still 3.0.2. I've reinstalled and solved that part.