View Single Post
  #29  
Old 05-19-2008, 06:00 PM
baerlichkeit's Avatar
baerlichkeit Offline
pp regular
 
Join Date: Mar 2008
Location: Berlin
Posts: 24
Hi,
smartphoner: email is out. The other errors should be caused by your servers configuration. This is for the update-checking inside the admin-area...

Ginger Rich: First, good it works now Second, sure you can alter these settings. Open the map.php inside the template folder and have a look at the code.

The interesting part is this one:
PHP Code:
if (GBrowserIsCompatible()) {
        var 
map = new GMap2(document.getElementById("map"));
        
map.addControl(new GLargeMapControl());
                
map.addControl(new GMapTypeControl());
                
map.addControl(new GOverviewMapControl());
                
map.enableContinuousZoom();
                
map.enableDoubleClickZoom(); 
        
map.setCenter(new GLatLng({$latitude},{$longitude}), 13);
         var 
center map.getCenter();
                    var 
center_y center.y
                    
var center_x center.
                        GEvent
.addListener(map"mouseover", function(){
                            
map.showControls();
                        });
                        
GEvent.addListener(map"mouseout", function(){
                            
map.hideControls(); 
                        });
                        var 
infoTabs = [
                        new 
GInfoWindowTab("Standort"," <div style='text-align:center;'><img style='vertical-align:middle;' src='{$image}'><\div>")
                    ];
                    var 
marker = new GMarker(map.getCenter());
                    
map.addOverlay(marker);
                    var 
windowOptions = {maxWidth"95"}; 
                    
GEvent.addListener(marker"click", function() {
                    
marker.openInfoWindowTabsHtml(infoTabs,windowOptions);
                    });
      } 
The 13 in
PHP Code:
map.setCenter(new GLatLng({$latitude},{$longitude}), 13); 
is the zoom level.
I'm sure I will add this as options later, but as I said... later

The complete reference can be found here: http://code.google.com/apis/maps/doc...reference.html

regards
Andreas
Reply With Quote