X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fsyp.js;h=8e32d8580d4d7e86d7b0f178cfa46f627d0c8e99;hp=032a6ac71e4264c29922c8e496f76a845cb9f272;hb=4acc8da49e3d4083fd9906388dd8fe0212bb9f42;hpb=e4a4e5149d55cf01a86f26392c52fdca803654ce diff --git a/js/syp.js b/js/syp.js index 032a6ac..8e32d85 100644 --- a/js/syp.js +++ b/js/syp.js @@ -32,10 +32,10 @@ var SYP = { init: function() { this.map = new OpenLayers.Map("map", { controls:[ + new OpenLayers.Control.SypAttribution(), 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") @@ -140,7 +140,7 @@ var SYP = { this.map.events.unregister("movestart", this, this._unselect); return; } - popup = feature.popup; + var popup = feature.popup; if (popup.visible()) { popup.hide(); }