@versatiles/svg-renderer 2.0.0-rc.0 → 2.0.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/dist/index.js +2 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -11372,7 +11372,8 @@ function resolveTokens(text, properties) {
|
|
|
11372
11372
|
/**
|
|
11373
11373
|
* Draws the map described by `job` onto its renderer and returns that renderer, so a
|
|
11374
11374
|
* caller can take the result in whatever form the backend provides (see
|
|
11375
|
-
* {@link renderMap} for the SVG string, or
|
|
11375
|
+
* {@link renderMap} for the SVG string, or `renderToPNG` in `@versatiles/png-renderer` for
|
|
11376
|
+
* an image buffer).
|
|
11376
11377
|
*/
|
|
11377
11378
|
async function drawMap(job) {
|
|
11378
11379
|
job.projection ??= Projection.fromStyle({
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versatiles/svg-renderer",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Renders MapLibre styles as SVG, in Node.js or the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svg",
|
|
7
7
|
"map",
|
|
8
|
-
"
|
|
8
|
+
"maplibre",
|
|
9
9
|
"vector-tiles",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"renderer",
|
|
11
|
+
"export",
|
|
12
|
+
"versatiles"
|
|
12
13
|
],
|
|
13
14
|
"homepage": "https://github.com/versatiles-org/versatiles-svg-renderer/tree/main/packages/svg-renderer",
|
|
14
15
|
"bugs": "https://github.com/versatiles-org/versatiles-svg-renderer/issues",
|