Use special MapTiler API key dedicated for OpenLayers examples

This commit is contained in:
Petr Sloup
2019-06-25 16:34:58 +02:00
parent 9e928b996c
commit 61fdf965ba
4 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ resources:
- https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.js - https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.js
- https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.css - https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.css
cloak: cloak:
- key: ER67WIiPdCQvhgsUjoWK - key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/ value: Get your own API key at https://www.maptiler.com/cloud/
--- ---
<div id="map" class="map"></div> <div id="map" class="map"></div>

View File

@@ -8,7 +8,7 @@ import VectorSource from '../src/ol/source/Vector.js';
import GeoJSON from '../src/ol/format/GeoJSON.js'; import GeoJSON from '../src/ol/format/GeoJSON.js';
const center = [-98.8, 37.9]; const center = [-98.8, 37.9];
const key = 'ER67WIiPdCQvhgsUjoWK'; const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB';
const mbMap = new mapboxgl.Map({ const mbMap = new mapboxgl.Map({
style: 'https://api.maptiler.com/maps/bright/style.json?key=' + key, style: 'https://api.maptiler.com/maps/bright/style.json?key=' + key,

View File

@@ -4,7 +4,7 @@ title: Vector tiles created from a Mapbox Style object
shortdesc: Example of using ol-mapbox-style with tiles from tilehosting.com. shortdesc: Example of using ol-mapbox-style with tiles from tilehosting.com.
tags: "vector tiles, mapbox style, ol-mapbox-style, maptiler" tags: "vector tiles, mapbox style, ol-mapbox-style, maptiler"
cloak: cloak:
- key: ER67WIiPdCQvhgsUjoWK - key: get_your_own_D6rA4zTHduk6KOKTXzGB
value: Get your own API key at https://www.maptiler.com/cloud/ value: Get your own API key at https://www.maptiler.com/cloud/
--- ---
<!doctype html> <!doctype html>

View File

@@ -1,3 +1,3 @@
import apply from 'ol-mapbox-style'; import apply from 'ol-mapbox-style';
apply('map', 'https://api.maptiler.com/maps/topo/style.json?key=ER67WIiPdCQvhgsUjoWK'); apply('map', 'https://api.maptiler.com/maps/topo/style.json?key=get_your_own_D6rA4zTHduk6KOKTXzGB');