-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathviewers.html
62 lines (51 loc) · 2.33 KB
/
viewers.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
layout: page
title: Viewers
titlehtml: OpenMapTiles in Mapbox GL, OpenLayers, Leaflet and Tangram
description: See our tiles in most used JavaScript web viewers such as Mapbox GL, OpenLayers, Leaflet and Tangram.
---
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans" />
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch,Promise"></script>
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/build/ol.js"></script>
<script src="https://unpkg.com/[email protected]/dist/olms.js"></script>
<!--
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
-->
<div class="viewers map active" id="map-mlgljs"></div>
<div class="viewers map" id="map-leaflet"></div>
<div class="viewers map" id="map-ol"></div>
<!-- <div class="viewers map" id="map-tangram"></div> -->
<div class="viewers map-switchers"><!--
--><div class="active map-switch" id="map-switch-mlgljs" onclick="javascript:switchMap('mlgljs')">
<span>MapLibre GL JS</span>
</div><!--
--><div class="map-switch" id="map-switch-leaflet" onclick="javascript:switchMap('leaflet')">
<span>Leaflet</span>
</div><!--
--><div class="map-switch" id="map-switch-ol" onclick="javascript:switchMap('ol')">
<span>OpenLayers</span>
</div><!--
<div class="map-switch" id="map-switch-tangram" onclick="javascript:switchMap('tangram')">
<span>Tangram</span>
</div>
--></div>
{% include maptilerbanner.html %}
<div class="attribution"><a href="https://www.maptiler.com/license/maps/" target="_blank">© MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a></div>
<script>
var api = '{{ site.maps.key }}';
</script>
<script src="/js/viewers.js"></script>
<!--
<div id="banner-bg"></div>
<div id="banner">
<div class="container">
<h1>Use different viewers</h1>
<h3>Vector tiles from OpenStreetMap</h3>
</div>
</div>
-->