Skip to content

Commit

Permalink
Use maplibre package so we can get notified of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Dec 18, 2024
1 parent 69212d9 commit b3bca4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<link rel="icon" type="image/x-icon" href="img/favicon.ico" />
<link href="css/reset.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/maplibre[email protected]/dist/maplibre-gl.css" />
<script type="module" src="https://unpkg.com/maplibre[email protected]/dist/maplibre-gl.js"></script>
<link rel="stylesheet" href="dist/maplibre/maplibre-gl.css" />
<script type="text/javascript" src="dist/maplibre/maplibre-gl.js"></script>
</head>
<body>
<script type="text/javascript">
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
"type": "module",
"version": "0.0.1",
"scripts": {
"build": "rollup --config rollup.config.js",
"build": "rollup --config rollup.config.js && cp -a node_modules/maplibre-gl/dist/. dist/maplibre/",
"serve": "node ./serve.js",
"sprites": "spreet --unique --minify-index-file style/sprites/svg style/sprites/opentrailmap && spreet --retina --unique --minify-index-file style/sprites/svg style/sprites/opentrailmap@2x"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@turf/buffer": "^7.0.0",
"maplibre-gl": "^4.7.1",
"rollup": "^4.19.1",
"rollup-plugin-polyfill-node": "^0.13.0"
},
"dependencies": {
"@turf/buffer": "^7.0.0"
}
}

0 comments on commit b3bca4c

Please sign in to comment.