@versatiles/map-editor 4.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.
Files changed (33) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -0
  3. package/dist/_app/immutable/assets/2.vrWZYRVE.css +1 -0
  4. package/dist/_app/immutable/assets/3.BLA0AxgC.css +1 -0
  5. package/dist/_app/immutable/assets/MapViewer.BtMysvtR.css +1 -0
  6. package/dist/_app/immutable/chunks/B16QPxTL.js +1 -0
  7. package/dist/_app/immutable/chunks/BFhkrCgt.js +1 -0
  8. package/dist/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  9. package/dist/_app/immutable/chunks/C1qWpZZK.js +3 -0
  10. package/dist/_app/immutable/chunks/CDI9yWJf.js +2 -0
  11. package/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
  12. package/dist/_app/immutable/chunks/CrYE9acA.js +1 -0
  13. package/dist/_app/immutable/chunks/DK3Fl9T5.js +1 -0
  14. package/dist/_app/immutable/chunks/DU0zVETU.js +4 -0
  15. package/dist/_app/immutable/chunks/Dams4V9V.js +1 -0
  16. package/dist/_app/immutable/chunks/nsn6-zdH.js +821 -0
  17. package/dist/_app/immutable/chunks/taIKLBN-.js +1 -0
  18. package/dist/_app/immutable/chunks/wfp5evzz.js +1 -0
  19. package/dist/_app/immutable/entry/app.DtAj8JKm.js +2 -0
  20. package/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
  21. package/dist/_app/immutable/entry/start.BlK6_2SP.js +2 -0
  22. package/dist/_app/immutable/nodes/0.DDz1Dk-W.js +1 -0
  23. package/dist/_app/immutable/nodes/1.DCMJt1lg.js +1 -0
  24. package/dist/_app/immutable/nodes/2.B3OUzcrd.js +28 -0
  25. package/dist/_app/immutable/nodes/3.ttq6Z4rF.js +1 -0
  26. package/dist/_app/immutable/nodes/4.Dmkqn01Q.js +1 -0
  27. package/dist/_app/version.json +1 -0
  28. package/dist/favicon.ico +0 -0
  29. package/dist/index.html +69 -0
  30. package/dist/map-editor.config.jsonc +80 -0
  31. package/dist/schema/mapjson-1.schema.json +821 -0
  32. package/dist/view/index.html +68 -0
  33. package/package.json +27 -0
@@ -0,0 +1,69 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <script>
7
+ // Every page is the index.html of a folder, with paths relative to it. Opened without the
8
+ // slash at the end, e.g. "/editor" instead of "/editor/", as some web servers and CDNs serve
9
+ // it, those paths would point to the folder above, and the page would not start.
10
+ if (!location.pathname.endsWith('/') && !location.pathname.split('/').pop().includes('.')) {
11
+ // not the rest of this page, which would load its scripts from the folder above
12
+ window.stop();
13
+ location.replace(location.pathname + '/' + location.search + location.hash);
14
+ }
15
+ </script>
16
+ <link href="./_app/immutable/entry/start.BlK6_2SP.js" rel="modulepreload">
17
+ <link href="./_app/immutable/entry/payload.DSmR2FwN.js" rel="modulepreload">
18
+ <link href="./_app/immutable/chunks/CRzLMJPS.js" rel="modulepreload">
19
+ <link href="./_app/immutable/chunks/B16QPxTL.js" rel="modulepreload">
20
+ <link href="./_app/immutable/chunks/CDI9yWJf.js" rel="modulepreload">
21
+ <link href="./_app/immutable/chunks/C1qWpZZK.js" rel="modulepreload">
22
+ <link href="./_app/immutable/chunks/Dams4V9V.js" rel="modulepreload">
23
+ <link href="./_app/immutable/chunks/BFhkrCgt.js" rel="modulepreload">
24
+ <link href="./_app/immutable/entry/app.DtAj8JKm.js" rel="modulepreload">
25
+ <link href="./_app/immutable/nodes/0.DDz1Dk-W.js" rel="modulepreload">
26
+ <link href="./_app/immutable/chunks/DK3Fl9T5.js" rel="modulepreload">
27
+ <link href="./_app/immutable/nodes/2.B3OUzcrd.js" rel="modulepreload">
28
+ <link href="./_app/immutable/chunks/DU0zVETU.js" rel="modulepreload">
29
+ <link href="./_app/immutable/chunks/nsn6-zdH.js" rel="modulepreload">
30
+ <!--1uha8ag--><meta name="generator" content="VersaTiles Map Editor 4.0.0"/> <meta name="description" content="Draw markers, lines and areas on a map, style them and share the result as a link or embed it in a website."/><!----><title>VersaTiles Map Editor</title>
31
+ <link href="./_app/immutable/assets/MapViewer.BtMysvtR.css" rel="stylesheet">
32
+ <link href="./_app/immutable/assets/2.vrWZYRVE.css" rel="stylesheet">
33
+ <style>
34
+ .wrapper {
35
+ position: absolute;
36
+ width: 100vw;
37
+ height: 100vh;
38
+ box-sizing: border-box;
39
+ }
40
+ </style>
41
+ </head>
42
+
43
+ <body data-sveltekit-preload-data="hover" style="margin: 0">
44
+ <div><!--[--><!--[--><!--[0--><!--[--><!--[--><!--[-1--><!--[--><div class="wrapper"><!--[-1--><!--]--><!----></div><!--]--><!--]--><!--]--><!----><!--]--><!--]--><!--]--><!----> <!--[-1--><!--]--><!--]-->
45
+
46
+ <script>
47
+ {
48
+ __sveltekit_1fjkvy = {
49
+ base: new URL(".", location).pathname.slice(0, -1),
50
+ version: "1791554285196"
51
+ };
52
+
53
+ const element = document.currentScript.parentElement;
54
+
55
+ import("./_app/immutable/entry/start.BlK6_2SP.js").then(async (kit) => {
56
+ kit.init(__sveltekit_1fjkvy);
57
+ const app = await import("./_app/immutable/entry/app.DtAj8JKm.js");
58
+ kit.start(app, element, {
59
+ node_ids: [0, 2],
60
+ data: [null,null],
61
+ form: null,
62
+ error: null
63
+ });
64
+ });
65
+ }
66
+ </script>
67
+ </div>
68
+ </body>
69
+ </html>
@@ -0,0 +1,80 @@
1
+ // Configuration of the VersaTiles Map Editor on this web server.
2
+ // The editor reads this file when it starts, so changes need no rebuild.
3
+ // Every field is optional: without it, or with an invalid value, the default is used, and the
4
+ // browser console names the invalid field. Comments (// and /* */) are allowed.
5
+ {
6
+ // ---- Servers ----------------------------------------------------------------------------
7
+
8
+ // Their addresses are absolute, or relative to this file, which the browser resolves: e.g.
9
+ // "/" is the host of the editor, "../geocoder/api" a folder next to the editor's. So this file
10
+ // works under any address, e.g. behind a CDN.
11
+
12
+ // The tile server: vector tiles, satellite imagery, symbols (sprites) and fonts (glyphs).
13
+ // It must serve the same as tiles.versatiles.org: Shortbread vector tiles and its assets/.
14
+ // Default: "https://tiles.versatiles.org"
15
+ // "tileServer": "https://tiles.versatiles.org",
16
+
17
+ // Whether the vector map shows the landcover of low zoom levels (forests, ice, …). The vector
18
+ // tiles of the tile server must have it, like those of tiles.versatiles.org; turn it off for
19
+ // tiles that do not.
20
+ // Default: true
21
+ // "landcover": true,
22
+
23
+ // Whether the background map can show its relief: shaded, and as terrain on a tilted map. The
24
+ // tile server must have elevation tiles, like those of tiles.versatiles.org; turn it off for a
25
+ // server without them.
26
+ // Default: true
27
+ // "elevation": true,
28
+
29
+ // The geocoder of the address search, with the API of Photon.
30
+ // Default: "https://geocode.versatiles.org/api"
31
+ // "geocoder": "https://geocode.versatiles.org/api",
32
+
33
+ // ---- New maps ---------------------------------------------------------------------------
34
+
35
+ // What a new map shows when the editor opens it: [west, south, east, north] in degrees.
36
+ // Default: the country of the user (guessed from the time zone, in the EU and the US),
37
+ // else the whole world
38
+ // "startView": [-180, -85, 180, 85],
39
+
40
+ // The background of a new map, as in .mapjson files: its settings, e.g. { "theme": "gray" } or
41
+ // { "base": "satellite", "labels": "fewer" }. Once chosen, it is the map's own background,
42
+ // which shared links keep on every server.
43
+ // Default: {}, the vector map
44
+ // "startBackground": {},
45
+
46
+ // The language of the labels of the background map of a new map, unless the starting
47
+ // background sets one: "user" (the language of the browser), "local" (local names) or a
48
+ // language code, e.g. "de".
49
+ // Default: "user"
50
+ // "defaultLanguage": "user",
51
+
52
+ // ---- Colors -----------------------------------------------------------------------------
53
+
54
+ // Color schemes offered in the color picker, before the predefined ones
55
+ // (bright, muted, okabe-ito, set1, dark2, pastel1). Each id once; a scheme with the id of a
56
+ // predefined one replaces it. Colors as "#rrggbb".
57
+ // Default: none
58
+ // "colorSchemes": [{ "id": "corporate", "name": "Corporate", "colors": ["#003366", "#e30613", "#f5a800"] }],
59
+
60
+ // Offer only the color schemes above, not the predefined ones.
61
+ // Default: false
62
+ // "replaceDefaultSchemes": false,
63
+
64
+ // The color scheme the color picker offers by default, by its id: one of the schemes above
65
+ // or a predefined one.
66
+ // Default: the first scheme offered
67
+ // "defaultColorScheme": "bright",
68
+
69
+ // ---- Fonts ------------------------------------------------------------------------------
70
+
71
+ // Font faces offered first for labels, by their glyph names on the tile server, e.g.
72
+ // "lato_bold". Faces the tile server does not have are skipped, with a warning in the
73
+ // browser console.
74
+ // Default: none (all faces of the tile server are offered)
75
+ // "fonts": ["open_sans_regular", "open_sans_bold"],
76
+
77
+ // Offer only the fonts above.
78
+ // Default: false
79
+ // "replaceDefaultFonts": false
80
+ }