[OpenLayers-Commits] r11525 - in
sandbox/marcjansen/openlayers/examples: . img
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Feb 25 11:14:58 EST 2011
Author: marcjansen
Date: 2011-02-25 08:14:57 -0800 (Fri, 25 Feb 2011)
New Revision: 11525
Added:
sandbox/marcjansen/openlayers/examples/img/sprinters-lausanne-impr.jpg
sandbox/marcjansen/openlayers/examples/lausanne.html
Log:
- adding sprinter image
Added: sandbox/marcjansen/openlayers/examples/img/sprinters-lausanne-impr.jpg
===================================================================
(Binary files differ)
Property changes on: sandbox/marcjansen/openlayers/examples/img/sprinters-lausanne-impr.jpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: sandbox/marcjansen/openlayers/examples/lausanne.html
===================================================================
--- sandbox/marcjansen/openlayers/examples/lausanne.html (rev 0)
+++ sandbox/marcjansen/openlayers/examples/lausanne.html 2011-02-25 16:14:57 UTC (rev 11525)
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<head>
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <title>OpenLayers Image Layer Example</title>
+ <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
+ <link rel="stylesheet" href="style.css" type="text/css" />
+ <style type="text/css">
+ html, body, #map {
+ margin: 0;
+ width: 100%;
+ height: 100%;
+ }
+ </style>
+ <script src="../lib/Firebug/firebug.js">
+ </script>
+ <script src="../lib/OpenLayers.js">
+ </script>
+ <script type="text/javascript">
+ var map;
+ function init(){
+ map = new OpenLayers.Map('map', {
+ fractionalZoom: true,
+ restrictedExtent: new OpenLayers.Bounds(0, 0, 3069, 1988)
+ });
+
+ var graphic = new OpenLayers.Layer.Image('Lausanne', 'img/sprinters-lausanne-impr.jpg', new OpenLayers.Bounds(0, 0, 3069, 1988), new OpenLayers.Size(512, 331), {});
+
+ graphic.events.on({
+ loadstart: function(){
+ OpenLayers.Console.log("loadstart");
+ },
+ loadend: function(){
+ OpenLayers.Console.log("loadend");
+ }
+ });
+
+ map.addLayers([graphic]);
+
+ map.zoomToMaxExtent();
+ }
+ </script>
+</head>
+<body onload="init()">
+ <div id="map">
+ </div>
+</body>
+</html>
Property changes on: sandbox/marcjansen/openlayers/examples/lausanne.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
More information about the Commits
mailing list