@versatiles/svg-renderer 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -7
- package/dist/maplibre.umd.js +16375 -0
- package/dist/maplibre.umd.js.map +1 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -64,18 +64,13 @@ document.body.innerHTML = svg;
|
|
|
64
64
|
|
|
65
65
|
The package includes an `SVGExportControl` that adds an export button to any MapLibre GL JS map.
|
|
66
66
|
|
|
67
|
-
```bash
|
|
68
|
-
npm install @versatiles/svg-renderer maplibre-gl
|
|
69
|
-
```
|
|
70
|
-
|
|
71
67
|
```html
|
|
72
68
|
<!DOCTYPE html>
|
|
73
69
|
<html>
|
|
74
70
|
<head>
|
|
75
71
|
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@5/dist/maplibre-gl.css" />
|
|
76
72
|
<script src="https://unpkg.com/maplibre-gl@5/dist/maplibre-gl.js"></script>
|
|
77
|
-
<script src="
|
|
78
|
-
<style></style>
|
|
73
|
+
<script src="https://unpkg.com/@versatiles/svg-renderer/dist/maplibre.umd.js"></script>
|
|
79
74
|
</head>
|
|
80
75
|
<body>
|
|
81
76
|
<div id="map"></div>
|
|
@@ -86,7 +81,7 @@ npm install @versatiles/svg-renderer maplibre-gl
|
|
|
86
81
|
center: [13.4, 52.5],
|
|
87
82
|
zoom: 10,
|
|
88
83
|
});
|
|
89
|
-
map.addControl(new SVGExportControl(), 'top-right');
|
|
84
|
+
map.addControl(new VersaTilesSVG.SVGExportControl(), 'top-right');
|
|
90
85
|
</script>
|
|
91
86
|
</body>
|
|
92
87
|
</html>
|