@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogis/waymark-js",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.5",
4
4
  "type": "module",
5
5
  "license": "GPL-2.0-only",
6
6
  "repository": {
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
- 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
- },
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
- type: "FeatureCollection",
40
- features: [
41
- {
42
- type: "Feature",
43
- geometry: {
44
- type: "Point",
45
- coordinates: [-2.548828125, 51.46769693762546],
46
- },
47
- properties: {
48
- type: "pub",
49
- title: "Great place for a pint!",
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: "Great place for a pint!",
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
  ],