Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Ouverture automatique infobulle google Map  (Read 3954 times)

0 Members and 1 Guest are viewing this topic.

xav31

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Ouverture automatique infobulle google Map
« on: December 30, 2007, 04:37:02 pm »

Bonjour

Qui pourrait m'éclairer sur l'application Google Api ?

j'ai installé google map et je souhaite que sur la page http://www.quipollue.com/displayimage.php?album=random&cat=0&pos=-42 le marqueur de la carte s'ouvre automatiquement.
J'ai essayé ceci, mais l'infobulle est vide.
Je n'arrive pas  faire passer l'information dans le marqueur.
j'ai ajouté ceci :setTimeout("marker.openInfoWindowHtml().maximize()",0);
Si je supprime cette ligne, il faut cliquer sur le marqueur et ça fonctionne normalement.


<script type="text/javascript">
      //<![CDATA[
      if (GBrowserIsCompatible()) {
      
         //create map
         var map = new GMap2(document.getElementById("small_map"));
         map.setCenter(new GLatLng($latitude,$longitude), {$default_zoom_level});
         map.setMapType({$CONFIG['gmap_small_type']});
         map.setMapType(G_SATELLITE_MAP);
         map.addControl(new GSmallMapControl());
         map.addControl(new GMapTypeControl());
         
         // Creates a marker whose info window displays the file info
         function createMarker(point, content)
         
         {
            var marker = new GMarker(point);
            // Show this markers index in the info window when it is clicked
            var html = content;
            
            GEvent.addListener(marker, "click", function(){marker.openInfoWindowHtml(html);});
            setTimeout("marker.openInfoWindowHtml().maximize()",0);
            
            return marker;
         };
         //code output for points
         $point_code;
      }   else {
           alert("Sorry, the Google Maps API is not compatible with this browser");
      }
      //]]>
      </script>

 ??? ???
Xavier
« Last Edit: December 31, 2007, 09:24:52 am by Frantz »
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Ouverture automatique infobulle google Map
« Reply #1 on: December 30, 2007, 05:20:06 pm »

euh désolé, mais ici c'est un forum consacré à coppermine, pas à google map.
essayez plutôt du coté de google
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

xav31

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Ouverture automatique infobulle google Map
« Reply #2 on: December 30, 2007, 10:06:16 pm »

 :-X

oui, c'est vrai...

Désolé ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.