X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=public%2Fjs%2Fsyj.js;h=62b2936a1248da6545966d3b0e95a43a41d0628f;hb=5f933abf0cc28142a0c4ed8d41ac79fd897ddb14;hp=85db31ac775e901508f4b65116bf498449d94fcb;hpb=d52fa81549b32a16a59b17732adb19a0c6559cc1;p=syj.git diff --git a/public/js/syj.js b/public/js/syj.js index 85db31a..62b2936 100644 --- a/public/js/syj.js +++ b/public/js/syj.js @@ -292,7 +292,7 @@ var SYJView = { 'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png', 'http://b.tile.openstreetmap.org/${z}/${x}/${y}.png', 'http://c.tile.openstreetmap.org/${z}/${x}/${y}.png'], - { wrapDateLine: true , attribution: SyjStrings.osmAttribution }); + { attribution: SyjStrings.osmAttribution }); layerOptions = {format: OpenLayers.Format.WKT, projection: WGS84, @@ -450,13 +450,6 @@ var SYJView = { } else { this.map.setCenter(center, zoom); } - this.resizeMap(); - }, - - resizeMap: function() { - var map = $('map'); - map.style.width = map.offsetWidth.toString() + 'px'; - map.style.height = map.offsetHeight.toString() + 'px'; }, observer: function(evt) { @@ -1293,7 +1286,3 @@ window.onbeforeunload = function() { return undefined; } }; - -window.onresize = function() { - SYJView.resizeMap(); -};