Leaflet/docs/_layouts/v2.html

160 lines
5.8 KiB
HTML
Raw Normal View History

2014-04-22 18:56:20 +08:00
<!DOCTYPE html>
<html>
<head>
{% capture title %}{% if page.title %}{{ page.title }} - {% elsif post.title %}{{ post.title }} - {% endif %}{% endcapture %}
<title>{{ title }}Leaflet - a JavaScript library for interactive maps</title>
<meta charset="utf-8" />
{% if title == '' %}
<meta property="og:title" content="Leaflet — an open-source JavaScript library for interactive maps" />
<meta property="og:description" content="Leaflet is a modern, lightweight open-source JavaScript library for mobile-friendly interactive maps." />
<meta property="og:image" content="https://leafletjs.com/docs/images/logo.png" />
2014-04-22 18:56:20 +08:00
<meta itemprop="name" content="Leaflet">
<meta itemprop="description" content="Leaflet — a modern, lightweight open-source JavaScript library for mobile-friendly interactive maps.">
<meta itemprop="image" content="https://leafletjs.com/docs/images/logo.png">
2014-04-22 18:56:20 +08:00
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2016-02-12 16:38:36 +08:00
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ layout.root }}{% endif %}{% endcapture %}
2014-04-22 18:56:20 +08:00
2016-02-12 16:38:36 +08:00
<link rel="shortcut icon" type="image/x-icon" href="{{ root }}docs/images/favicon.ico" />
2014-04-22 18:56:20 +08:00
<link href="https://leafletjs.com/atom.xml" type="application/atom+xml" rel="alternate" title="Leaflet Dev Blog Atom Feed" />
2014-04-22 18:56:20 +08:00
2016-02-12 16:38:36 +08:00
<link rel="stylesheet" href="{{ root }}docs/css/normalize.css" />
<link rel="stylesheet" href="{{ root }}docs/css/main.css" />
2014-04-22 18:56:20 +08:00
2018-05-04 20:14:00 +08:00
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,300' rel='stylesheet' type='text/css'>
2014-04-22 20:05:11 +08:00
2016-02-12 16:38:36 +08:00
<script src="{{ root }}docs/highlight/highlight.pack.js"></script>
<link rel="stylesheet" href="{{ root }}docs/highlight/styles/github-gist.css" />
2014-04-22 18:56:20 +08:00
<!-- Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.css" integrity="{{site.integrity_hash_css}}" crossorigin=""/>
<script src="https://unpkg.com/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.js" integrity="{{site.integrity_hash_uglified}}" crossorigin=""></script>
2014-04-22 18:56:20 +08:00
{% if page.css %}<style>{{ page.css }}</style>{% endif %}
<script>
2017-02-16 15:44:50 +08:00
ACCESS_TOKEN = 'pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw';
2018-05-04 20:18:40 +08:00
MB_ATTR = 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
2018-05-04 20:17:13 +08:00
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
2018-05-04 20:17:41 +08:00
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>';
MB_URL = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + ACCESS_TOKEN;
OSM_URL = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
OSM_ATTRIB = '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';
2014-04-22 18:56:20 +08:00
</script>
</head>
<body{% if page.bodyclass %} class="{{ page.bodyclass }}"{% endif %}>
2018-05-04 20:19:15 +08:00
<h1><a href="https://leafletjs.com/"><img src="{{ root }}docs/images/logo.png" alt="Leaflet" width="300" /></a></h1>
2014-04-22 21:51:21 +08:00
<h3 class="tagline">an open-source JavaScript library<br> for mobile-friendly interactive maps</h3>
2014-04-22 18:56:20 +08:00
<ul class="nav">
<li>
{% if page.title == nil %}
<span>Overview</span>
{% else %}
2016-02-12 16:38:36 +08:00
<a href="{{ root }}index.html">Overview</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
<li>
{% if page.title == 'Tutorials' %}
<span>Tutorials</span>
{% else %}
2016-02-12 16:38:36 +08:00
<a href="{{ root }}examples.html"{% if page.tutorial == true %} class="active"{% endif %}>Tutorials</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
<li>
{% if page.title == 'Documentation' %}
2014-04-23 04:54:27 +08:00
<span>Docs</span>
2014-04-22 18:56:20 +08:00
{% else %}
<a href="{{ root }}reference-{{ site.latest_leaflet_version }}.html">Docs</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
<li>
{% if page.title == 'Download' %}
<span>Download</span>
{% else %}
2016-02-12 16:38:36 +08:00
<a href="{{ root }}download.html">Download</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
<li>
{% if page.title == 'Plugins' %}
<span>Plugins</span>
{% else %}
2016-02-12 16:38:36 +08:00
<a href="{{ root }}plugins.html">Plugins</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
<li>
{% if page.title == 'Blog' %}
<span>Blog</span>
{% else %}
2016-02-12 16:38:36 +08:00
<a href="{{ root }}blog.html"{% if page.post == true %} class="active"{% endif %}>Blog</a>
2014-04-22 18:56:20 +08:00
{% endif %}
</li>
</ul>
2014-04-30 04:15:06 +08:00
<div class="container">
2014-04-22 18:56:20 +08:00
{{ content }}
<div class="footer">
<p>&copy; 2017 <a href="http://agafonkin.com/en">Vladimir Agafonkin</a>. Maps &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.</p>
2014-04-22 18:56:20 +08:00
</div>
2014-04-22 21:51:21 +08:00
2014-04-22 18:56:20 +08:00
</div>
<nav class="ext-links">
2018-05-04 20:14:00 +08:00
<a class="ext-link twitter" href="https://twitter.com/LeafletJS" title="Follow LeafletJS on Twitter"><img alt="Follow LeafletJS on Twitter" src="{{root}}docs/images/twitter-round.png" width="46" /></a>
2016-02-12 16:38:36 +08:00
<a class="ext-link github" href="http://github.com/Leaflet/Leaflet" title="View Source on GitHub"><img alt="View Source on GitHub" src="{{root}}docs/images/github-round.png" width="46" /></a>
<a class="ext-link forum" href="https://stackoverflow.com/questions/tagged/leaflet" title="Ask for help on Stack Overflow"><img alt="Leaflet questions on Stack Overflow" src="{{root}}docs/images/forum-round.png" width="46" /></a>
</nav>
2014-04-23 14:44:26 +08:00
2014-04-22 18:56:20 +08:00
<script>
2015-07-01 05:26:34 +08:00
hljs.configure({tabReplace: ' '});
2015-07-10 23:05:28 +08:00
hljs.initHighlighting();
2014-04-22 18:56:20 +08:00
(function () {
2015-07-10 23:05:28 +08:00
if (document.body.className.indexOf('api-page') !== -1) {
var headers = document.getElementsByTagName('h2');
for (var i = 0, len = headers.length; i < len; i++) {
if (headers[i].id) {
headers[i].onclick = function(e) {
if (e.offsetX < 0) {
window.location.hash = '#' + this.id;
}
};
2014-04-22 18:56:20 +08:00
}
}
}
})();
</script>
<script>
var _gaq = _gaq || [];
_gaq.push([ '_setAccount', 'UA-4147697-4' ]);
_gaq.push([ '_trackPageview' ]);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl'
: 'http://www')
+ '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
2015-06-30 20:35:58 +08:00
2017-02-04 23:17:51 +08:00
<script src="{{ root }}docs/js/docs.js"></script>
2014-04-22 18:56:20 +08:00
</body>
</html>