When we create the examples, we know exactly which specific `ol.…` symbols we `goog.require(…)`. We can create links to the API documentation of these symbols automatically.
88 lines
3.6 KiB
HTML
88 lines
3.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
|
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" type="text/css">
|
|
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
|
<link rel="stylesheet" href="./resources/layout.css" type="text/css">
|
|
{{{ extraHead }}}
|
|
{{{ css.tag }}}
|
|
<link rel="stylesheet" href="./resources/prism/prism.css" type="text/css">
|
|
<script src="./resources/zeroclipboard/ZeroClipboard.min.js"></script>
|
|
<title>{{ title }}</title>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="navbar-inner">
|
|
<div class="container" id="navbar-inner-container">
|
|
<a class="brand" href="./"><img src="./resources/logo-70x70.png"> OpenLayers 3 Examples</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container-fluid">
|
|
|
|
{{{ contents }}}
|
|
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<h4 id="title">{{ title }}</h4>
|
|
<p id="shortdesc">{{ shortdesc }}</p>
|
|
<div id="docs">{{ md docs }}</div>
|
|
<div id="tags">{{ tags }}</div>
|
|
<div id="api-links">Related API documentation: {{{ js.apiHtml }}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row-fluid">
|
|
<hr>
|
|
<form method="POST" target="_blank" action="http://jsfiddle.net/api/post/jquery/1.11.0/">
|
|
<input type="button" class="btn btn-info" id="copy-button" value="Copy example code">
|
|
<input type="submit" class="btn btn-primary" id="jsfiddle-button" value="Create JSFiddle">
|
|
<textarea class="hidden" name="js">{{ js.source }}</textarea>
|
|
<textarea class="hidden" name="css">{{ css.source }}</textarea>
|
|
<textarea class="hidden" name="html">{{ contents }}</textarea>
|
|
<input type="hidden" name="wrap" value="l">
|
|
<input type="hidden" name="resources" value="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css,https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js,https://cdnjs.cloudflare.com/ajax/libs/ol3/{{ olVersion }}/ol.css,https://cdnjs.cloudflare.com/ajax/libs/ol3/{{ olVersion }}/ol.js">
|
|
<pre><code id="example-source" class="language-markup"><!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{ title }}</title>
|
|
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ol3/{{ olVersion }}/ol.css" type="text/css">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ol3/{{ olVersion }}/ol.js"></script>
|
|
{{ extraHead }}
|
|
{{#if css.source}}
|
|
<style>
|
|
{{ css.source }}
|
|
</style>
|
|
{{/if}}
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
|
|
{{ contents }}
|
|
</div>
|
|
<script>
|
|
{{ js.source }}
|
|
</script>
|
|
</body>
|
|
</html></code></pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
|
|
<script src="http://maxcdn.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
|
|
<script src="./resources/common.js"></script>
|
|
<script src="./resources/prism/prism.min.js"></script>
|
|
{{{ js.tag }}}
|
|
|
|
</body>
|
|
</html>
|