X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=public%2Fjs%2Fsyjraw.js;h=b07e0b984d1936e6f03b54a238e72c6f6feeddb8;hb=24364d6ff0a0f73a41cf8df2bd17283f3355a59a;hp=3606018658cb7560ab22918a3227e589ac221396;hpb=11aeabb7c67df94d738f0f278604201ccb35c6fb;p=syj.git diff --git a/public/js/syjraw.js b/public/js/syjraw.js index 3606018..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"); @@ -37,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();