Résultats de recherche pour "openInfoWindowHtml"

Coordonnées GPS d’une adresse

[...] er, "click", function(latlng) { var lat = latlng.lat(); var lng = latlng.lng(); var DegMinSec = convert_DMS(lat,lng); marker.openInfoWindowHtml(DegMinSec); }); return marker; } function convert_DMS(lat,lng){ var c_lat = getDMS(lat); var c_lng = getDMS(lng); var coordonnees = COORDONNEES GPS ADRESSE; return coordonnees; } function getDMS(coord){ // On récupère les degrés [...]

Méthodes infowindow - GMap2

[...] GMarker qu’à l’objet map lui-même ou encore à tout autre élément présent sur la carte. Accès direct aux méthodes: openInfoWindow openInfoWindowHtml openInfoWindowTabs openInfoWindowTabsHtml showMapBlowup updateInfoWindow updateCurrentTab closeInfoWindow getInfoWindow openInfoWindow() Signature de la méthode openInfoWindow : openInfoWindow(latlng : GLatLng, node : contenu, opts? : GInfoWindowOptions) . Cette méthode per [...]

Cluster marker (regrouper des markers)

[...] l'infobulle = listing des résultats for(var n = 0; n < infoMarker.length; n++) info += infoMarker.titre[n]+'<br />'; marker.openInfoWindowHtml(info); }); } </script> création d’un objet Rectangle pour les tests d’affichage sur la map <script type="text/javascript"> // Definition de l'objet RECTANGLE pour les phases de développement / debugging ... function Rectangle(bounds, opt_weight, opt_ [...]

Afficher des placemarks (JSON)

[...] chargée d'ouvrir l'infobulle après un click sur un item du listing des résultats ou sur un marker */ function openMarker(m){ markers[m].openInfoWindowHtml(htmls[m]); } /* Déclaration de la fonction "écouteur d'événement" sur les markers */ function clickMarker(a){ GEvent.addListener(markers[a], "click", function() { openMarker(a); }); } /* Déclaration de la fonction chargée de récupérer le c [...]

classe GClientGeocoder

[...] g(); /* Affichage d'un marker avec infobulle */ var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml(CONTENU INFO BULLE); /* Centrage de la carte sur le point */ map.setCenter(new GLatLng(a,b), 12); }} ); } } </script> getLocations (adresse) Disponible depuis la version 2.55 de l’Api. Contrairement à la méthode getLatLng, la mé [...]

Insérer StreetView dans l’infobulle

[...] rue}); GEvent.addListener(marker, "click", function(latlng) { var lat = latlng.lat(); var lng = latlng.lng(); marker.openInfoWindowHtml('<div id="streetView" style="width: 500px; height: 250px; text-align:center">Street View en cours de chargement ...</div>'); setTimeout("displayStreetView('"+lat+"','"+lng+"');",2500); }); GEvent.addListener(marker, "dragstart", function() { m [...]

Les classes Google Map

[...] NB : Les liens non cliquables concernent les pages non encore disponibles… Cette page fait référence aux classes Google Map de la version 2.x. Les classes de l’Api Google Map V3 ne sont pas abordées ici. Survolez les liens pour avoir un aperçu des méthodes et propriétés appartenant à la classe concernée. Api Google Map V 2.X Les classes La classe principale GMap2 configuration panneaux de contrôle types de carte informa [...]

La classe GInfoWindowOptions

[...] Les instances de la classe GInfoWindowOptions sont utilisées dans l’argument opts? lors de l’appel aux méthodes openInfoWindow(), openInfoWindowHtml(), openInfoWindowTabs(), openInfoWindowTabsHtml(), les variantes de bindInfoWindow(), et showMapBlowup() des classes GMap2 et GMarker. Il n’y a pas de constructeur pour cette classe, on l’utilise comme un objet javascript. NB: voir aussi la classe GInfoWindow, la gestion des [...]

Classe GMarker

[...] nts liés aux markers et les options applicables aux markers. Accès direct aux méthodes et aux propriétés: constructeur GMarker openInfoWindow() openInfoWindowHtml() openInfoWindowTabs() openInfoWindowTabsHtml() bindInfoWindow() bindInfoWindowHtml() bindInfoWindowTabs() bindInfoWindowTabsHtml() closeInfoWindow() showMapBlowup() getIcon() getTitle() getPoint() getLatLng() setPoint() setLatLng() enableDragging() disableDragging() draggable() d [...]

Ajout d’un marker

[...] r); } function createMarker(point,html,icon){ var marker = new GMarker(point,icon); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } demo2(); </script> On obtient alors cette carte avec les zoom et le choix du type de vues disponibles. En cliquant sur le marker, l’infobulle apparaît. Il est possible de déclencher l’ouverture de l’infobulle en fonction [...]