]> dev.renevier.net Git - syp.git/blobdiff - js/syp.js
small code cleanup (indentation, missing copyrights, etc)
[syp.git] / js / syp.js
index 032a6ac71e4264c29922c8e496f76a845cb9f272..8e32d8580d4d7e86d7b0f178cfa46f627d0c8e99 100644 (file)
--- a/js/syp.js
+++ b/js/syp.js
@@ -32,10 +32,10 @@ var SYP = {
     init: function() {
         this.map = new OpenLayers.Map("map", {
             controls:[
     init: function() {
         this.map = new OpenLayers.Map("map", {
             controls:[
+                new OpenLayers.Control.SypAttribution(),
                 new OpenLayers.Control.Navigation(),
                 new OpenLayers.Control.PanZoom(),
                 new OpenLayers.Control.Navigation(),
                 new OpenLayers.Control.PanZoom(),
-                new OpenLayers.Control.Permalink(),
-                new OpenLayers.Control.SypAttribution()
+                new OpenLayers.Control.Permalink()
             ],
             projection: new OpenLayers.Projection("EPSG:900913"),
             displayProjection: new OpenLayers.Projection("EPSG:4326")
             ],
             projection: new OpenLayers.Projection("EPSG:900913"),
             displayProjection: new OpenLayers.Projection("EPSG:4326")
@@ -140,7 +140,7 @@ var SYP = {
             this.map.events.unregister("movestart", this, this._unselect);
             return;
         }
             this.map.events.unregister("movestart", this, this._unselect);
             return;
         }
-        popup = feature.popup;
+        var popup = feature.popup;
         if (popup.visible()) {
             popup.hide();
         }
         if (popup.visible()) {
             popup.hide();
         }