Changeset 2989

Show
Ignore:
Timestamp:
07/07/2008 03:36:07 PM (5 months ago)
Author:
Geert
Message:

Fixed #578. Thanks, Richard.

Location:
trunk/modules/gmaps
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/gmaps/libraries/Gmap.php

    r2207 r2989  
    176176 
    177177                // Map 
    178                 $map = 'map = new GMap2(document.getElementById("'.$this->id.'"));'; 
     178                $map = 'var map = new GMap2(document.getElementById("'.$this->id.'"));'; 
    179179 
    180180                // Map controls 
  • trunk/modules/gmaps/views/gmaps/jquery.php

    r2207 r2989  
    1212        if (GBrowserIsCompatible()) 
    1313        { 
    14                 // Initialize the map. 
    15                 map = new GMap(document.getElementById('map')); 
     14                // Initialize the map 
     15                var map = new GMap(document.getElementById('map')); 
    1616                map.addControl(new GLargeMapControl()); 
    1717                map.centerAndZoom(new GPoint(0,35), 16);