X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=public%2Fjs%2Fsyjraw.js;h=b07e0b984d1936e6f03b54a238e72c6f6feeddb8;hb=24364d6ff0a0f73a41cf8df2bd17283f3355a59a;hp=cf6be9c37eb8e964d3ea010be1581735d046a28c;hpb=36fd88b7c9509509dc20070dae48883abe01a3fa;p=syj.git diff --git a/public/js/syjraw.js b/public/js/syjraw.js index cf6be9c..b07e0b9 100644 --- a/public/js/syjraw.js +++ b/public/js/syjraw.js @@ -1,3 +1,8 @@ +/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier, + and is published under the AGPL license. */ + +"use strict"; + var WGS84 = new OpenLayers.Projection("EPSG:4326"); var Mercator = new OpenLayers.Projection("EPSG:900913"); @@ -19,7 +24,10 @@ function resizeMap() { function init() { var map = new OpenLayers.Map('map', { - controls: [ new OpenLayers.Control.Attribution() ], + controls: [ + new OpenLayers.Control.Navigation(), + new OpenLayers.Control.Attribution() + ], theme: null}), baseLayer = new OpenLayers.Layer.OSM("OSM", null, { attribution: SyjStrings.osmAttribution }), @@ -34,7 +42,7 @@ function init() { map.addLayers([baseLayer, viewLayer]); viewLayer.addFeatures([wkt.read(gInitialGeom.data)]); - extent = viewLayer.getDataExtent(); + var extent = viewLayer.getDataExtent(); map.updateSize(); map.zoomToExtent(extent); resizeMap();