Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability of the map in mobile devices #38

Open
camminateinfriuli opened this issue Dec 16, 2022 · 6 comments
Open

Usability of the map in mobile devices #38

camminateinfriuli opened this issue Dec 16, 2022 · 6 comments

Comments

@camminateinfriuli
Copy link

First of all congratulations this plugin is amazing.

I have an issue with map usability when used in mobile.
The map takes up the whole width of the screen and if I have to scroll to go down the page it doesn't work because I get a movement on the map.
I would and perhaps many others need to create a button that enables "dragging" of the map or that is disabled when the map is viewed on mobile devices.
Another possibility is to display the whole map in a box that does not take up 100% of the screen width.

@astridx
Copy link
Owner

astridx commented Dec 16, 2022

Please see this option name="scrollwheelzoom. Does this solve your Problem?

<field name="scrollwheelzoom" type="list" label="PLG_FIELDS_AGGPXTRACK_PARAMS_SCOLLWHEELZOOM_LABEL" description="PLG_FIELDS_AGGPXTRACK_PARAMS_SCOLLWHEELZOOM_DESC" default="1">

@camminateinfriuli
Copy link
Author

camminateinfriuli commented Dec 19, 2022

Please see this option name="scrollwheelzoom. Does this solve your Problem?

<field name="scrollwheelzoom" type="list" label="PLG_FIELDS_AGGPXTRACK_PARAMS_SCOLLWHEELZOOM_LABEL" description="PLG_FIELDS_AGGPXTRACK_PARAMS_SCOLLWHEELZOOM_DESC" default="1">

"scrollwheelzoom" Fixes the problem if the map is displayed on desktop but does not solve the problem if the map is displayed on mobile.
We should add the control (better if it can be activated on the map) of the "dragging" parameter.

you can see via smartphone here
https://camminateinfriuli.it/test/index.php/itinerari/itinerari-pn/escursione-madonna-degli-scalini-malga-coda-del-bosco

If you scroll once you reach the map you will only get the movement within the map and the smile, even if possible it is not easy.

@astridx
Copy link
Owner

astridx commented Dec 20, 2022

@camminateinfriuli
You're right. That is a different function. I had it mixed up.
I have put on the todo to extend this function here.

(Hint https://github.com/astridx/pkg_agosms/blob/6e20a644b5bea40548ebc2ce78d96dd4df1a6b28/j4/pkg_agosms/src/modules/mod_agosm/mod_agosm.php#L74)

@camminateinfriuli
Copy link
Author

@camminateinfriuli You're right. That is a different function. I had it mixed up. I have put on the todo to extend this function here.

(Hint https://github.com/astridx/pkg_agosms/blob/6e20a644b5bea40548ebc2ce78d96dd4df1a6b28/j4/pkg_agosms/src/modules/mod_agosm/mod_agosm.php#L74)

Sorry but I don't understand how to use the information you gave me, I installed pkg_agosms but nothing changed I use pkg_aggpxtrack .

I apologize if I didn't understand.

@astridx
Copy link
Owner

astridx commented Dec 21, 2022

Sorry. That was a misunderstanding.
Agosm should not be installed.
I just remembered that this function improves scrolling on the mobile phone. The hint shows the place where I implemented it in agosms. This was meant in case you know how to program yourself and want to integeate it.
I don't know yet when I'll get around to integrating it here.

@camminateinfriuli
Copy link
Author

it is possible to solve this problem, in mobile devices it is very annoying when scrolling, when the finger meets the map, the scroll stops and the map moves. I think it's enough to disable the map scroll, but I don't know where to insert the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants