mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
ol-pmtiles 2.0.1 (#530)
* fix IIFE build by specifying platform=browser to esbuild
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
## 2.0.1
|
||||
* Fix IIFE build - fflate needs browser build instead of node one
|
||||
|
||||
## 2.0.0
|
||||
* Update to pmtiles.js v4
|
||||
|
||||
## 1.0.0
|
||||
|
||||
* Port code to TypeScript.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8"/>
|
||||
<script src="https://cdn.jsdelivr.net/npm/ol@v9.0.0/dist/ol.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v9.0.0/ol.css">
|
||||
<script src="https://unpkg.com/ol-pmtiles@2.0.0/dist/olpmtiles.js"></script>
|
||||
<script src="https://unpkg.com/ol-pmtiles@2.0.1/dist/olpmtiles.js"></script>
|
||||
<style>
|
||||
body, #map {
|
||||
height:100vh;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8"/>
|
||||
<script src="https://cdn.jsdelivr.net/npm/ol@v9.0.0/dist/ol.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v9.0.0/ol.css">
|
||||
<script src="https://unpkg.com/ol-pmtiles@2.0.0/dist/olpmtiles.js"></script>
|
||||
<script src="https://unpkg.com/ol-pmtiles@2.0.1/dist/olpmtiles.js"></script>
|
||||
<style>
|
||||
body, #map {
|
||||
height:100vh;
|
||||
|
||||
4
openlayers/package-lock.json
generated
4
openlayers/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ol-pmtiles",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ol-pmtiles",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"pmtiles": "^4.2.1"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ol-pmtiles",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "PMTiles sources for OpenLayers",
|
||||
"type": "module",
|
||||
"main": "dist/cjs/index.cjs",
|
||||
|
||||
@@ -29,6 +29,9 @@ export default [
|
||||
}),
|
||||
defineConfig({
|
||||
...baseOptions,
|
||||
esbuildOptions: (options) => {
|
||||
options.platform = "browser";
|
||||
},
|
||||
outDir: "dist",
|
||||
format: "iife",
|
||||
globalName: "olpmtiles",
|
||||
|
||||
Reference in New Issue
Block a user