× Forum for the GPXTrackMap Content Plugin for Joomla! 2.5 and 3.x

Google and is switch to fullscreen map possible?

JohandeWit replied the topic: Google and is switch to fullscreen map possible?

9 years 2 months ago

Hi Frank,

I did some testing already. I like the feature.

Only thing is that sometimes maps render a little slow, or portions are left out, and that makes the underlying page visible. See the attached screenshot. I understand you can not controll the way the maps renders or loads, but this might confuse my users.

And you mentioned this only work ok when you have one map on a page. I also played with that. It seems to work quite ok, the only difference I notice is that the full screen button en the + sign (map layer controll) are diplayed on two locations. I guess that is what you mean (sreenshot 2)

Following on that I have a question. As you can see my +sign is drawn near the edge of the map. Where c


File Attachment:

File Name: Screenshot2.zip
File Size:645 KB

an I change the position a little (more to the mid of the map)?

Attachments:

Please Log in or Create an account to join the conversation.

JohandeWit replied the topic: Google and is switch to fullscreen map possible?

9 years 2 months ago

Hi Frank,

I'm happy to test this. But it will be a couple of day's before I can make the time (I expectthis weekend).

Thanks! And a happy new year.

Johan

Please Log in or Create an account to join the conversation.

fingeradmin replied the topic: Google and is switch to fullscreen map possible?

9 years 2 months ago

Hoi Johan,

i had a few hours (well... days :whistle: ) to spend and have managed to implement a "fullscreen"
feature via a button on the map. Please look in the Downloads section (on the left) for the V1.3.3 beta 1 version.

After installing, you can activate the fullscreen button in the plugin options
on the Map controls tab.

It would be great if you could give it a try and report back here if it works for you!

cheers & happy new year,
Frank

Please Log in or Create an account to join the conversation.

JohandeWit replied the topic: Google and is switch to fullscreen map possible?

9 years 3 months ago

Hi Frank,

I will give it a try. Thanks.

Please Log in or Create an account to join the conversation.

fingeradmin replied the topic: Google and is switch to fullscreen map possible?

9 years 3 months ago

Hi again Johan,

i just played around a bit wrt. the fullscreen mode: You can use a css toggle function that will work on the div#map0 class like this:

div#map0 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

This will put the map in fullscreen above anything else on your page.

To make the map update its size correctly, in the gpxtrackmap.js i added the following code at line 16 (right before the line with %WINDOWEVENTCODE%):
window.onresize = function()
{
  setTimeout( function() { %MAPVAR%.updateSize();}, 200);
}

...what you'd still need is a button or similar at z-index 1000 (above the map) to allow the users to switch back to "normal" mode.

hth & cheers,
Frank

Please Log in or Create an account to join the conversation.

JohandeWit replied the topic: Google and is switch to fullscreen map possible?

9 years 3 months ago

Thanks for the feedback!

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum