Thread Starter
glujaz
(@glujaz)
I saw that there is even this solution ! *.*
Any chance to implement this ?
https://wiki.openstreetmap.org/wiki/Google_Maps_Example
I am willing to look in to a solution to avoid zooming, but the whole basic starting point of this plugin was to be 100% Gooogle-free 😉
Thread Starter
glujaz
(@glujaz)
Sure. But I assume, using google’s javascript doesn’t make you send data to them ! Isn’t it ?
(Honestly, you got the point, didn’t expected this answer :p )
Thread Starter
glujaz
(@glujaz)
I honestly would prefere to avoid them too, but you need to be honest. The pan an zoom UI is simply the best one I have encountered for now :/
(counteargument appreciated !)
Okay, I am currently testing to disable the zoomScrollWheel on mobile devices. That will prevent zooming in on the map instead of scrolling through the page. Yet you will still be able to zoom in by pinching.
I will update the plugin after testing.
Design note though:
You should never make your map 100% in height. Leave room for people te scroll through your page. This can be easily achieved with css:
.em-osm-container {max-height: 75%;}
Thread Starter
glujaz
(@glujaz)
Oh, perfect Thanks ! Will it work on a Computer too ?
Thanks for the note, I used it. But didn’t see any changes. I use a fixed 450px height. :/
Is it because of that ?
Talking about design note, the pin at the top (Dublin) is half hidden. Any way to unzoom a little bit the map to make it fully visible again ?
Are you using [events_map] or [locations_map] for that map?
If locations_map:
In em-osm-maps.php, line 246, change to padding:[50,50]
If events_map:
In em-osm-maps.php, line 352, change to padding:[50,50]
That should add some extra padding, making the map zoom out.
Thread Starter
glujaz
(@glujaz)
I use locations_map. Your solution worked, thanks !
Though, if you update the plugin, I suppose I will loose this change isn’t it ?
How can I make this permanent ?
I tested to (of course) and it seems to handle it just fine with the new values, so I will change the core code 😉
Thread Starter
glujaz
(@glujaz)
Perfect thanks ! 🙂
As this is solved, and the core question will be solved too in a futur update, should I mark it as solved now, or wait ?
I think I fixed it. Before releasing it publicly, would you be so kind to test it for me, please?
You can download the beta release here:
https://www.stonehengecreations.nl/osm-beta.zip
Thread Starter
glujaz
(@glujaz)
I downloaded it, and installed it (never askted for activation ?!) but see no changes…
It’s online, so you can check it
Thread Starter
glujaz
(@glujaz)
No, my bad. It says “Destination already exist”
Installation failed…
Will removing the current plugin make any problem later (settings and so) when reinstalling ?
Thread Starter
glujaz
(@glujaz)
Installed anyway.
I don’t see any good changes.
If you stop scrolling on a computer, the map takes the control of the scroll wheel again.
On iPhone, scrolling the page with the finger starting on the map does nothing anymore. Not even pan the map.
Thread Starter
glujaz
(@glujaz)
By the way, you definitly should add an option for activating this in the settings. (But ok, you need to make it working first 😀 )