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
+9 -47
View File
@@ -1,33 +1,17 @@
<!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">
<title>Animation example</title>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<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="row-fluid">
<div class="span12"> <div class="span12">
<div id="map" class="map"></div> <div id="map" class="map"></div>
</div> </div>
</div> </div>
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">
<button id="rotate-left"><i class="icon-arrow-left"></i></button> <button id="rotate-left"><i class="icon-arrow-left"></i></button>
@@ -41,25 +25,3 @@
<button id="spiral-to-madrid">Spiral to Madrid</button> <button id="spiral-to-madrid">Spiral to Madrid</button>
</div> </div>
</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>
+11 -46
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>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<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="row-fluid">
<div class="span12"> <div class="span12">
<div id="map" class="map"></div> <div id="map" class="map"></div>
</div> </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>
+10 -46
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>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<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="row-fluid">
<div class="span12"> <div class="span12">
<div id="map" class="map"></div> <div id="map" class="map"></div>
</div> </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>