Inita: google map in Wordpress

Beitrag lesen

Hoi,

Danke fuers erklaerung.

Ich kann dir mein JS script fuer google map zeigen, der liegt in /js/main.js file:

  
window.onload = load;  
window.onunload = GUnload;  
    //<![CDATA[  
  
    function load() {  
      if (GBrowserIsCompatible()) {  
        var map = new GMap2(document.getElementById("map"));  
        map.addControl(new GLargeMapControl());  
        map.setCenter(new GLatLng(56.939888, 24.044169), 13);  
            var point = new GLatLng(56.939888, 24.044169);  
            var marker = new GMarker(point);  
            map.addOverlay(marker);  
  
            GEvent.addListener(marker, "click", function() {  
            marker.openInfoWindowHtml("Auto serviss<br />'Kaa allazh industrijas'<br />Zasulauka iela 2, Riga");  
      });  
      }  
    }  
  
    //]]>  

LG,
Inita

--
Don't forget to love yourself.