Skip to content

Commit ce050f3

Browse files
committed
Update Pub image
1 parent 5d3d6da commit ce050f3

9 files changed

Lines changed: 32 additions & 24 deletions

File tree

docs/content/1.index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Display a Map with a custom Marker.
6363
title: "The Scarlet Ibis",
6464
description:
6565
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
66-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
66+
image_large_url:
67+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
6768
},
6869
geometry: {
6970
type: "Point",
@@ -147,7 +148,8 @@ Here we are creating a new Viewer Instance, setting some [options](map#map-optio
147148
title: "The Scarlet Ibis",
148149
description:
149150
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
150-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
151+
image_large_url:
152+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
151153
},
152154
geometry: {
153155
type: "Point",

docs/content/3.viewer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ Here we are creating a new Viewer Instance, setting some [options](map#map-optio
208208
title: "The Scarlet Ibis",
209209
description:
210210
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
211-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
211+
image_large_url:
212+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
212213
},
213214
geometry: {
214215
type: "Point",

docs/content/4.editor.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ Here we are creating a new Editor Instance, setting some [options](editor#option
175175
title: "The Scarlet Ibis",
176176
description:
177177
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
178-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
178+
image_large_url:
179+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
179180
},
180181
geometry: {
181182
type: "Point",

docs/public/assets/geo/pub.jpeg

33.1 KB
Loading

docs/public/examples/editor/pub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
description:
4141
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
4242
image_large_url:
43-
"https://www.waymark.dev/assets/geo/pub.jpeg",
43+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
4444
},
4545
geometry: {
4646
type: "Point",

docs/public/examples/viewer/pub.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
title: "The Scarlet Ibis",
5454
description:
5555
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
56-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
56+
image_large_url:
57+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
5758
},
5859
geometry: {
5960
type: "Point",

docs/public/v2.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
title: "The Scarlet Ibis",
5151
description:
5252
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
53-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
53+
image_large_url:
54+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
5455
},
5556
geometry: {
5657
type: "Point",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The following example will display a Map on the page with a single Marker. Once
7070
title: "The Scarlet Ibis",
7171
description:
7272
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
73-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
73+
image_large_url: "https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
7474
},
7575
geometry: {
7676
type: "Point",

tests/docs/1.index.test.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { describe, it, expect, beforeEach } from 'vitest';
1+
import { describe, it, expect, beforeEach } from "vitest";
22

3-
describe('1. Start Here', () => {
3+
describe("1. Start Here", () => {
44
let viewer;
55

66
beforeEach(() => {
77
// Setup the DOM as per the Quick Start example
8-
document.body.innerHTML = '<div id="waymark-map" style="height: 500px; width: 500px;"></div>';
9-
8+
document.body.innerHTML =
9+
'<div id="waymark-map" style="height: 500px; width: 500px;"></div>';
10+
1011
// Mock clientHeight/clientWidth for Leaflet
11-
const container = document.getElementById('waymark-map');
12-
Object.defineProperty(container, 'clientWidth', { value: 500 });
13-
Object.defineProperty(container, 'clientHeight', { value: 500 });
12+
const container = document.getElementById("waymark-map");
13+
Object.defineProperty(container, "clientWidth", { value: 500 });
14+
Object.defineProperty(container, "clientHeight", { value: 500 });
1415
});
1516

16-
describe('Quick Start', () => {
17-
it('should initialize a map with custom marker and load GeoJSON', () => {
17+
describe("Quick Start", () => {
18+
it("should initialize a map with custom marker and load GeoJSON", () => {
1819
// Create viewer Instance
1920
viewer = window.Waymark_Map_Factory.viewer();
2021

@@ -23,7 +24,7 @@ describe('1. Start Here', () => {
2324
map_options: {
2425
// Initial Map Zoom
2526
map_init_zoom: 16,
26-
map_div_id: 'waymark-map', // Explicitly set ID for test environment safety
27+
map_div_id: "waymark-map", // Explicitly set ID for test environment safety
2728

2829
// Our Pub Icon
2930
marker_types: [
@@ -38,12 +39,12 @@ describe('1. Start Here', () => {
3839
});
3940

4041
// Verify map is initialized
41-
const mapContainer = document.getElementById('waymark-map');
42-
expect(mapContainer.classList.contains('leaflet-container')).toBe(true);
43-
42+
const mapContainer = document.getElementById("waymark-map");
43+
expect(mapContainer.classList.contains("leaflet-container")).toBe(true);
44+
4445
// Verify init_done() was called (which adds this class)
4546
// This ensures the map is fully initialized and visible
46-
expect(mapContainer.classList.contains('waymark-is-viewer')).toBe(true);
47+
expect(mapContainer.classList.contains("waymark-is-viewer")).toBe(true);
4748

4849
// Load GeoJSON
4950
viewer.load_json({
@@ -56,7 +57,8 @@ describe('1. Start Here', () => {
5657
title: "The Scarlet Ibis",
5758
description:
5859
"Great pub, great food! Especially after a Long Ride 🚴🍔🍟🍺🍺💤",
59-
image_large_url: "https://www.waymark.dev/assets/geo/pub.jpeg",
60+
image_large_url:
61+
"https://www.ogis.org/waymark-js/assets/geo/pub.jpeg",
6062
},
6163
geometry: {
6264
type: "Point",
@@ -69,7 +71,7 @@ describe('1. Start Here', () => {
6971
// Verify marker is added to the map
7072
// We can check if a marker icon with the expected class exists
7173
// Note: Waymark likely adds classes based on the icon type
72-
const markers = document.querySelectorAll('.leaflet-marker-icon');
74+
const markers = document.querySelectorAll(".leaflet-marker-icon");
7375
expect(markers.length).toBeGreaterThan(0);
7476
});
7577
});

0 commit comments

Comments
 (0)