Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
172 lines (116 loc) · 2.05 KB

File metadata and controls

executable file
·
172 lines (116 loc) · 2.05 KB

OpenLayers x MapTiler Vector Tiles

README02

README05

Start OpenLayers easily.


Usage

README04


Install package

npm install

build

npm run build

dev

npm run dev

Example


./_resouce/js

script.js

import Map from 'ol/Map';
import View from 'ol/View';
import { fromLonLat } from 'ol/proj';
import olms from 'ol-mapbox-style';

// MIERUNE Streets読み込み
const styleJson =
    'https://api.maptiler.com/maps/jp-mierune-streets/style.json?key=[APIキー]';
const map = new Map({
    target: 'map',
    view: new View({
        center: fromLonLat([139.767, 35.681]),
        zoom: 14,
    }),
});
olms(map, styleJson);


README01


License

MIT

Copyright (c) 2021 MIERUNE Inc.




Japanese


OpenLayers x MapTiler ベクトルタイル

README02

README05

OpenLayersを手軽に始める


使用方法

README04


パッケージインストール

npm install

ビルド

npm run build

開発

npm run dev


./_resouce/js

script.js

import Map from 'ol/Map';
import View from 'ol/View';
import { fromLonLat } from 'ol/proj';
import olms from 'ol-mapbox-style';

// MIERUNE Streets読み込み
const styleJson =
    'https://api.maptiler.com/maps/jp-mierune-streets/style.json?key=[APIキー]';
const map = new Map({
    target: 'map',
    view: new View({
        center: fromLonLat([139.767, 35.681]),
        zoom: 14,
    }),
});
olms(map, styleJson);


README01


ライセンス

MIT

Copyright (c) 2021 MIERUNE Inc.