Another possible improvement for Phoca Maps

Phoca Maps - displaying maps in Joomla! CMS
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 20
Joined: 02 Dec 2016, 11:41

Another possible improvement for Phoca Maps

Post by Dautrich »

Hi Jan,

when I design a map for use on a desktop PC, I typically use a landscape format with

Code: Select all

width: 100%;

I choose a zoom factor to get everything necessary into the map.

Image

When this map is displayed on a smartphone, it will not completely fit into the screen; you won't see important things on the right and left sides.

Image

Of course the user can zoom the image, but there might be a better solution: Why not ask for two zoom factors during the map definition, one for desktop, another one for mobile?

Regards,
Rolf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49059
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Another possible improvement for Phoca Maps

Post by Jan »

Hi, hmmm which template do you use, I don't get any such problem when testing, the map is fully displayed on smartphone device size:

Image
If you find Phoca extensions useful, please support the project
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 20
Joined: 02 Dec 2016, 11:41

Re: Another possible improvement for Phoca Maps

Post by Dautrich »

Hi Jan,

I don't think that this is related to the template. You can check it out here:

https://www.systemtest.neudorf-mkk.de/b ... -2025.html
https://www.systemtest.neudorf-mkk.de/b ... cassiopeia

The issue is: If your screen width is too low, you lose important information, which is too far away from the centre.

Regards
Rolf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49059
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Another possible improvement for Phoca Maps

Post by Jan »

Hi, maybe I don't fully understand what is the problem exactly, can you give some example in screenshot?

Image

Jan
If you find Phoca extensions useful, please support the project
christine
Phoca Hero
Phoca Hero
Posts: 2936
Joined: 28 Nov 2010, 17:20

Re: Another possible improvement for Phoca Maps

Post by christine »

Hallo Jan,

I get the same view (screenshot) as in the first post.

Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49059
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Another possible improvement for Phoca Maps

Post by Jan »

Hi, if the problem should be the position of the popup, unfortunately, Phoca Maps has no option to somehow influence it, this is a part of the map and it is displayed in iframe map, where Phoca Maps has no option to somehow define it :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 20
Joined: 02 Dec 2016, 11:41

Re: Another possible improvement for Phoca Maps

Post by Dautrich »

Hi Jan,
My idea was to have two distinct zoom factors in the map definition: One for large screens, one for mobile. This would enable the user to set "good" zoom factors for both types of devices.
"Good" in this context means that the relevant parts of the maps will be completely visible on both types of devices. In my example the zoom factor was set to 16, showing the above picture.
For smartphones, a good zoom factor would be 15 (as shown in the picture below) or 14.
Image
User avatar
Dautrich
Phoca Member
Phoca Member
Posts: 20
Joined: 02 Dec 2016, 11:41

Re: Another possible improvement for Phoca Maps

Post by Dautrich »

<blockquote class="imgur-embed-pub" lang="en" data-id="a/vLbczLK" data-context="false" ><a href="//imgur.com/a/vLbczLK"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
christine
Phoca Hero
Phoca Hero
Posts: 2936
Joined: 28 Nov 2010, 17:20

Re: Another possible improvement for Phoca Maps

Post by christine »

Hi Rolf,
Did you mean this Link (imgur)?
https://imgur.com/a/vLbczLK

Kind regards
Christine
Post Reply