[SOLVED] Map height 100%?

  • Krx
  • Auteur du sujet
  • Visiteur
  • Visiteur
il y a 6 ans 9 mois - il y a 6 ans 9 mois #4676 par Krx
[SOLVED] Map height 100%? a été créé par Krx
Hello

Is it possible to set map height 100'%?
In gmap Joomla menu item it says px or % (attachment) but when I add 100% map is not shown.

Latest Joomla and GmapFP

Regards
Pièces jointes :
Dernière édition: il y a 6 ans 9 mois par Krx.

Connexion ou Créer un compte pour participer à la conversation.

  • Krx
  • Auteur du sujet
  • Visiteur
  • Visiteur
il y a 6 ans 9 mois #4677 par Krx
Réponse de Krx sur le sujet Map height 100%?
Le Bump?

I tried and tried but without success, it seems that it's impossible to get your map to use 100% of available space...

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 ans 9 mois #4678 par gmapfp
Réponse de gmapfp sur le sujet Map height 100%?
Hi,
It's a mistake in the text. It's impossible to put a height if a main div in %.

Connexion ou Créer un compte pour participer à la conversation.

  • Krx
  • Auteur du sujet
  • Visiteur
  • Visiteur
il y a 6 ans 9 mois #4679 par Krx
Réponse de Krx sur le sujet Map height 100%?
Hmm.. That's bad.

I've built empty template which has only <jdoc:include type="component" /> to display only gmapfp on specified url.
And there are many tutorials how to achieve Google Maps height 100%, like this: stackoverflow.com/questions/32928684/goo...ht-100-of-div-parent, I did one of my own to get coordinates for my other projects: www.znaor.com/gmap.php

Problem is that nothing of that works with GMapFP.
I tried to modify your code,; I removed hardcoded "px" and added 100% in joomla menu item height settings, but as soon as I add % in settings, GmapFP stops to render Google Map.

So for standard Google Map its doable, but not for GmapFP

Thanks for replying
Regards

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 ans 9 mois #4680 par gmapfp
Réponse de gmapfp sur le sujet Map height 100%?
I will check it.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 ans 9 mois #4684 par gmapfp
Réponse de gmapfp sur le sujet Map height 100%?
Hi,

Make a custom module.
Activate it only on the full page.

In the content, write :
<script type="text/javascript">
    jQuery( document ).ready(function( ) {
        ma_div = jQuery("#print_zone_gmapfp div:eq(0)");
        ma_div.css('position', 'fixed');
        ma_div.css('top', '0');
        ma_div.css('left', '0');
        ma_div.css('height', '100%');
        jQuery("#print_zone_gmapfp div:eq(2)").css('height', '100%');
    });
</script>
Les utilisateur(s) suivant ont remercié: Krx

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.140 secondes
Propulsé par Kunena
FaLang translation system by Faboba