@arenarium/maps 1.0.18 → 1.0.22

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 (2) hide show
  1. package/README.md +33 -33
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,26 +4,26 @@
4
4
 
5
5
  ```html
6
6
  <html lang="en">
7
- <head>
8
- <script src="https://unpkg.com/@arenarium/maps@latest/dist/index.js"></script>
9
- <link href="https://unpkg.com/@arenarium/maps@latest/dist/style.css" rel="stylesheet" />
10
- </head>
11
- <body>
12
- <div id="map"></div>
13
- <script>
14
- const map = arenarium.mountMap({
15
- // Id of the HTML element that contains the map,
16
- container: 'map'
17
- // The initial position and zoomof the map
18
- position: {
19
- center: { lat: 51.505, lng: -0.09 },
20
- zoom: 13
21
- },
22
- // The initial theme of the map
23
- theme: 'light'
24
- });
25
- </script>
26
- </body>
7
+ <head>
8
+ <script src="https://unpkg.com/@arenarium/maps@latest/dist/index.js"></script>
9
+ <link href="https://unpkg.com/@arenarium/maps@latest/dist/style.css" rel="stylesheet" />
10
+ </head>
11
+ <body>
12
+ <div id="map"></div>
13
+ <script>
14
+ const map = arenarium.mountMap({
15
+ // Id of the HTML element that contains the map,
16
+ container: 'map'
17
+ // The initial position and zoomof the map
18
+ position: {
19
+ center: { lat: 51.505, lng: -0.09 },
20
+ zoom: 13
21
+ },
22
+ // The initial theme of the map
23
+ theme: 'light'
24
+ });
25
+ </script>
26
+ </body>
27
27
  </html>
28
28
  ```
29
29
 
@@ -35,19 +35,19 @@ npm install @arenarium/maps
35
35
 
36
36
  ```svelte
37
37
  <script lang="ts">
38
- import { onMount } from 'svelte';
39
- import { mountMap } from '$lib/index.js';
40
-
41
- onMount(() => {
42
- const map = mountMap({
43
- container: 'map',
44
- position: {
45
- center: { lat: 51.505, lng: -0.09 },
46
- zoom: 13
47
- },
48
- theme: 'light'
49
- });
50
- });
38
+ import { onMount } from 'svelte';
39
+ import { mountMap } from '$lib/index.js';
40
+
41
+ onMount(() => {
42
+ const map = mountMap({
43
+ container: 'map',
44
+ position: {
45
+ center: { lat: 51.505, lng: -0.09 },
46
+ zoom: 13
47
+ },
48
+ theme: 'light'
49
+ });
50
+ });
51
51
  </script>
52
52
 
53
53
  <div id="map"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.0.18",
3
+ "version": "1.0.22",
4
4
  "keywords": [
5
5
  "arenarium",
6
6
  "maps",