@ogis/waymark-js 2.0.0-alpha.4 β 2.0.0-alpha.5
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/package.json +1 -1
- package/readme.md +43 -33
- package/dist/waymark-js.css +0 -14
- package/dist/waymark-js.js +0 -27121
- package/dist/waymark-js.umd.cjs +0 -766
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -19,37 +19,40 @@ import { useWaymark } from "@ogis/waymark-js";
|
|
|
19
19
|
import "@ogis/waymark-js/dist/waymark-js.css";
|
|
20
20
|
|
|
21
21
|
const instance = useWaymark().createInstance({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
map_options: {
|
|
23
|
+
div_id: "waymark-map",
|
|
24
|
+
marker_types: [
|
|
25
|
+
{
|
|
26
|
+
marker_title: "Pub",
|
|
27
|
+
marker_shape: "marker",
|
|
28
|
+
marker_size: "large",
|
|
29
|
+
icon_type: "icon",
|
|
30
|
+
marker_icon: "ion-beer",
|
|
31
|
+
marker_colour: "#fbfbfb",
|
|
32
|
+
icon_colour: "#754423",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
instance.loadGeoJSON({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
type: "FeatureCollection",
|
|
40
|
+
features: [
|
|
41
|
+
{
|
|
42
|
+
type: "Feature",
|
|
43
|
+
properties: {
|
|
44
|
+
type: "pub",
|
|
45
|
+
title: "The Scarlet Ibis",
|
|
46
|
+
description:
|
|
47
|
+
"Great pub, great food! Especially after a Long Ride π΄πππΊπΊπ€",
|
|
48
|
+
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
|
|
49
|
+
},
|
|
50
|
+
geometry: {
|
|
51
|
+
type: "Point",
|
|
52
|
+
coordinates: [-128.0094, 50.6539],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
53
56
|
});
|
|
54
57
|
```
|
|
55
58
|
|
|
@@ -73,6 +76,10 @@ instance.loadGeoJSON({
|
|
|
73
76
|
const instance = useWaymark().createInstance({
|
|
74
77
|
map_options: {
|
|
75
78
|
div_id: "waymark-map",
|
|
79
|
+
maplibre_options: {
|
|
80
|
+
zoom: 16,
|
|
81
|
+
},
|
|
82
|
+
|
|
76
83
|
marker_types: [
|
|
77
84
|
{
|
|
78
85
|
marker_title: "Pub",
|
|
@@ -92,13 +99,16 @@ instance.loadGeoJSON({
|
|
|
92
99
|
features: [
|
|
93
100
|
{
|
|
94
101
|
type: "Feature",
|
|
95
|
-
geometry: {
|
|
96
|
-
type: "Point",
|
|
97
|
-
coordinates: [-2.548828125, 51.46769693762546],
|
|
98
|
-
},
|
|
99
102
|
properties: {
|
|
100
103
|
type: "pub",
|
|
101
|
-
title: "
|
|
104
|
+
title: "The Scarlet Ibis",
|
|
105
|
+
description:
|
|
106
|
+
"Great pub, great food! Especially after a Long Ride π΄πππΊπΊπ€",
|
|
107
|
+
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
|
|
108
|
+
},
|
|
109
|
+
geometry: {
|
|
110
|
+
type: "Point",
|
|
111
|
+
coordinates: [-128.0094, 50.6539],
|
|
102
112
|
},
|
|
103
113
|
},
|
|
104
114
|
],
|