Port over the animation, arcgis-tiled and attributions examples

This commit is contained in:
Bart van den Eijnden
2015-04-02 11:27:24 +02:00
committed by Andreas Hocevar
parent 8d87bd30f0
commit 943cac755b
3 changed files with 58 additions and 167 deletions
+27 -65
View File
@@ -1,65 +1,27 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Animation example"
<meta charset="utf-8"> shortdesc: "Demonstrates animated pan, zoom, and rotation."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> This example shows how to use the beforeRender function on the Map to run one
<link rel="stylesheet" href="../css/ol.css" type="text/css"> or more animations.
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css"> tags: "animation"
<link rel="stylesheet" href="../resources/layout.css" type="text/css"> ---
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> <div class="row-fluid">
<title>Animation example</title> <div class="span12">
</head> <div id="map" class="map"></div>
<body> </div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top"> <div class="row-fluid">
<div class="navbar-inner"> <div class="span12">
<div class="container"> <button id="rotate-left"><i class="icon-arrow-left"></i></button>
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a> <button id="rotate-right"><i class="icon-arrow-right"></i></button>
</div> <button id="rotate-around-rome">Rotate around Rome</button>
</div> <button id="pan-to-london">Pan to London</button>
</div> <button id="elastic-to-moscow">Elastic to Moscow</button>
<button id="bounce-to-istanbul">Bounce to Istanbul</button>
<div class="container-fluid"> <button id="spin-to-rome">Spin to Rome</button>
<button id="fly-to-bern">Fly to Bern</button>
<div class="row-fluid"> <button id="spiral-to-madrid">Spiral to Madrid</button>
<div class="span12"> </div>
<div id="map" class="map"></div> </div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<button id="rotate-left"><i class="icon-arrow-left"></i></button>
<button id="rotate-right"><i class="icon-arrow-right"></i></button>
<button id="rotate-around-rome">Rotate around Rome</button>
<button id="pan-to-london">Pan to London</button>
<button id="elastic-to-moscow">Elastic to Moscow</button>
<button id="bounce-to-istanbul">Bounce to Istanbul</button>
<button id="spin-to-rome">Spin to Rome</button>
<button id="fly-to-bern">Fly to Bern</button>
<button id="spiral-to-madrid">Spiral to Madrid</button>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">Animation example</h4>
<p id="shortdesc">Demonstrates animated pan, zoom, and rotation.</p>
<div id="docs">
<p>See the <a href="animation.js" target="_blank">animation.js source</a> to see how this is done.</p>
</div>
<div id="tags">animation</div>
</div>
</div>
</div>
<script src="../resources/jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=animation" type="text/javascript"></script>
</body>
</html>
+16 -51
View File
@@ -1,51 +1,16 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Tiled ArcGIS MapServer example"
<meta charset="utf-8"> shortdesc: "Example of a tiled ArcGIS layer."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> This example shows how to use an ArcGIS REST MapService as tiles.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> This source type supports Map and Image Services. For cached ArcGIS
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css"> services, better performance is available by using
<link rel="stylesheet" href="../resources/layout.css" type="text/css"> <code>ol.source.XYZ</code> instead.
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> tags: arcgis, tile, tilelayer"
<title>Tiled ArcGIS MapServer example</title> ---
</head> <div class="row-fluid">
<body> <div class="span12">
<div id="map" class="map"></div>
<div class="navbar navbar-inverse navbar-fixed-top"> </div>
<div class="navbar-inner"> </div>
<div class="container">
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">Tiled ArcGIS MapServer example</h4>
<p id="shortdesc">Example of a tiled ArcGIS layer.</p>
<div id="docs">
<p>See the <a href="arcgis-tiled.js" target="_blank">arcgis-tiled.js source</a> to see how this is done.</p>
</div>
<div id="tags">arcgis, tile, tilelayer</div>
</div>
</div>
</div>
<script src="../resources/jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=arcgis-tiled" type="text/javascript"></script>
</body>
</html>
+15 -51
View File
@@ -1,51 +1,15 @@
<!doctype html> ---
<html lang="en"> template: "example.html"
<head> title: "Attributions example"
<meta charset="utf-8"> shortdesc: "Example of a attributions visibily change on map resize, to collapse them on small maps."
<meta http-equiv="X-UA-Compatible" content="chrome=1"> docs: >
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> When the map gets too small because of a resize, the attribution will be collapsed.
<link rel="stylesheet" href="../css/ol.css" type="text/css"> This is because the <code>collapsible</code> option is set to true if the width
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap.min.css" type="text/css"> of the map gets smaller than 600 pixels.
<link rel="stylesheet" href="../resources/layout.css" type="text/css"> tags: "attributions, openstreetmap"
<link rel="stylesheet" href="../resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> ---
<title>Attributions example</title> <div class="row-fluid">
</head> <div class="span12">
<body> <div id="map" class="map"></div>
</div>
<div class="navbar navbar-inverse navbar-fixed-top"> </div>
<div class="navbar-inner">
<div class="container">
<a class="brand" href="./"><img src="../resources/logo.png"> OpenLayers 3 Examples</a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="title">Attributions example</h4>
<p id="shortdesc">Example of a attributions visibily change on map resize, to collapse them on small maps.</p>
<div id="docs">
<p>See the <a href="attributions.js" target="_blank">attributions.js source</a> to see how this is done.</p>
</div>
<div id="tags">attributions, openstreetmap</div>
</div>
</div>
</div>
<script src="../resources/jquery.min.js" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
<script src="loader.js?id=attributions" type="text/javascript"></script>
</body>
</html>