Merging with OneLab latest
[unfold.git] / plugins / googlemap / static / js / googlemap.js
index 91ece99..8a740b2 100644 (file)
@@ -14,6 +14,7 @@
     var debug=false;
     debug=true;
 
+    // this now should be obsolete, rather use plugin_debug in plugin.js
     // more on a on-per-record basis
     var debug_deep=false;
     // debug_deep=true;
@@ -21,6 +22,7 @@
     var GoogleMap = Plugin.extend({
 
         init: function(options, element) {
+           this.classname="googlemap";
             this._super(options, element);
 
             /* Member variables */
@@ -74,7 +76,7 @@
         /* PLUGIN EVENTS */
 
         on_show: function(e) {
-           if (debug) messages.debug("googlemap.on_show");
+               if (debug) messages.debug("googlemap.on_show");
             var googlemap = e.data;
             google.maps.event.trigger(googlemap.map, 'resize');
         }, 
@@ -92,6 +94,8 @@
             //create empty LatLngBounds object in order to automatically center the map on the displayed objects
             this.bounds = new google.maps.LatLngBounds();
             var center = new google.maps.LatLng(this.options.latitude, this.options.longitude);
+
+            console.log("GoogleMap zoom = "+this.options.zoom);
             var myOptions = {
                 zoom: this.options.zoom,
                 center: center,