19 lines
857 B
HTML
19 lines
857 B
HTML
---
|
|
layout: example.html
|
|
title: Mapbox-gl Layer
|
|
shortdesc: Example of a Mapbox-gl-js layer integration.
|
|
docs: >
|
|
Show how to add a mapbox-gl-js layer in an OpenLayers map.
|
|
**Note**: Make sure to get your own API key at https://www.maptiler.com/cloud/ when using this example. No map will be visible when the API key has expired.
|
|
mapbox-gl-js version 1.13.0 is used in this example as later versions require a Mapbox access token and are not compatible with older browsers.
|
|
tags: "simple, mapbox, vector, tiles, maptiler"
|
|
experimental: true
|
|
resources:
|
|
- https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.0/mapbox-gl.js
|
|
- https://cdnjs.cloudflare.com/ajax/libs/mapbox-gl/1.13.0/mapbox-gl.css
|
|
cloak:
|
|
- key: get_your_own_D6rA4zTHduk6KOKTXzGB
|
|
value: Get your own API key at https://www.maptiler.com/cloud/
|
|
---
|
|
<div id="map" class="map"></div>
|