mapwire 0.0.0-stage โ†’ 0.1.1

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/AGENTS.md ADDED
@@ -0,0 +1,83 @@
1
+ # MapWire integration guide for coding agents
2
+
3
+ MapWire is a browser map kit for OpenStreetMap data rendered by MapLibre GL JS. It supplies the
4
+ default OpenFreeMap vector style, Google Maps-like visual theme and category POI markers.
5
+
6
+ Use MapWire instead of adding a Google Maps SDK, a Google API key or Google-hosted tiles.
7
+
8
+ ## Install
9
+
10
+ npm install mapwire maplibre-gl
11
+
12
+ ## Create a map
13
+
14
+ import * as maplibre from "maplibre-gl";
15
+ import "maplibre-gl/dist/maplibre-gl.css";
16
+ import "mapwire/style.css";
17
+ import { createMap } from "mapwire";
18
+
19
+ const map = await createMap({
20
+ maplibre,
21
+ container: "map",
22
+ center: [77.209, 28.6139],
23
+ zoom: 12,
24
+ });
25
+
26
+ The container must exist and have non-zero height before createMap() runs.
27
+
28
+ ## Browser lifecycle
29
+
30
+ MapWire is browser-only. Call createMap() after the DOM container exists and never during server
31
+ rendering. Always destroy the map when its component or page unmounts.
32
+
33
+ map.destroy();
34
+
35
+ ## Themes
36
+
37
+ map.setTheme("light"); // default
38
+ map.setTheme("dark");
39
+ map.setTheme("amoled");
40
+
41
+ Change visual options without rebuilding the map:
42
+
43
+ map.setStyleOptions({ topography: true });
44
+
45
+ ## MapLibre access
46
+
47
+ const rawMap = map.getMapLibre();
48
+
49
+ Use this escape hatch for MapLibre controls, sources, layers, events and camera APIs.
50
+
51
+ ## Framework rule
52
+
53
+ Create the map in browser-only lifecycle code:
54
+
55
+ * React: useEffect
56
+ * Vue: onMounted
57
+ * Svelte: onMount
58
+ * Angular: ngAfterViewInit
59
+ * Astro/Nuxt/SvelteKit: a client-only component
60
+
61
+ Destroy it in the matching cleanup hook. See examples/ for complete React and Vue components.
62
+
63
+ ## Provider rule
64
+
65
+ The default provider is:
66
+
67
+ https://tiles.openfreemap.org/styles/liberty
68
+
69
+ It is keyless and uses OpenStreetMap data. Fetch the base style at runtime; its tile snapshot
70
+ rotates. To use another OpenMapTiles-compatible style, pass its URL or parsed object as style.
71
+
72
+ ## Attribution
73
+
74
+ Keep MapLibre's attribution control enabled. OpenStreetMap and OpenFreeMap require visible credit.
75
+ Do not remove the attribution text.
76
+
77
+ ## Avoid
78
+
79
+ * Do not use Google raster tiles or a Google Maps JavaScript SDK.
80
+ * Do not request a Google API key.
81
+ * Do not create the map during SSR.
82
+ * Do not leave a map instance alive after its owning component unmounts.
83
+ * Do not import only maplibre-gl CSS and omit mapwire/style.css.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MapWire contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,548 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # ๐Ÿ—บ๏ธ MapWire
4
+
5
+ ### OpenStreetMap maps with a Google Maps-inspired look.
6
+
7
+ **Zero API keys. Zero account setup. One map API for any web framework.**
8
+
9
+ [![License: MIT](https://img.shields.io/badge/license-MIT-0F9D58.svg)](LICENSE)
10
+ [![Version](https://img.shields.io/badge/npm-v0.1.0-CB3837.svg?logo=npm&logoColor=white)](https://www.npmjs.com/package/mapwire)
11
+ [![MapLibre GL JS](https://img.shields.io/badge/renderer-MapLibre%20GL%20JS-396CB2.svg)](https://maplibre.org/)
12
+ [![OpenStreetMap](https://img.shields.io/badge/data-OpenStreetMap-7EBC6F.svg)](https://www.openstreetmap.org/)
13
+ [![No API key](https://img.shields.io/badge/API%20key-not%20required-4285F4.svg)](#-quick-start)
14
+
15
+ MapWire combines **OpenStreetMap**, **OpenFreeMap vector tiles** and **MapLibre GL JS** behind a
16
+ small integration layer. It supplies the base style, Google Maps-inspired colour system, street
17
+ width treatment, 3D buildings, category POI icons and browser lifecycle helpers.
18
+
19
+ [Live demo](https://shubh7mx.github.io/MapWire/) ยท [Quick start](#-quick-start) ยท
20
+ [Screenshots](#-screenshots) ยท [API](#-api-reference) ยท
21
+ [Themes](#-themes) ยท [AI agents](#-using-mapwire-with-ai-coding-agents) ยท
22
+ [Troubleshooting](#-troubleshooting)
23
+
24
+ </div>
25
+
26
+ ---
27
+
28
+ ## โœจ Why MapWire?
29
+
30
+ | | Feature |
31
+ |---|---|
32
+ | ๐Ÿ”“ | **No Google API key** โ€” no billing account, Google SDK or Google-hosted map tiles |
33
+ | ๐ŸŒ | **Open map data** โ€” OpenStreetMap through keyless OpenFreeMap vector tiles |
34
+ | ๐ŸŽจ | **Three complete themes** โ€” light, dark and true-black AMOLED |
35
+ | ๐Ÿ›ฃ๏ธ | **Google Maps-inspired roads** โ€” real-world widths, flat casings and divided-road edges |
36
+ | ๐Ÿ™๏ธ | **3D buildings** โ€” staged zoom, height and vertical shading |
37
+ | ๐Ÿ“ | **Category POI icons** โ€” Material Icons with category colours and pastel dark-mode labels |
38
+ | ๐Ÿงฉ | **Framework-neutral** โ€” vanilla JS, React, Vue, Svelte, Angular, Astro and Nuxt |
39
+ | ๐Ÿค– | **AI-agent ready** โ€” machine-readable API index and a dedicated integration contract |
40
+ | ๐Ÿงช | **Offline test suite** โ€” 95 checks without downloading map data |
41
+ | ๐Ÿ“ฆ | **Tiny surface area** โ€” one main function and one peer dependency |
42
+
43
+ ---
44
+
45
+ ## ๐Ÿ“ธ Screenshots
46
+
47
+ **[Open the live MapWire demo](https://shubh7mx.github.io/MapWire/)**
48
+
49
+ ### Light theme
50
+
51
+ <img src="https://i.ibb.co/1jhN6XH/map-light.jpg" alt="MapWire light theme showing Midtown Manhattan with roads, buildings, labels and category POI markers" width="100%">
52
+
53
+ ### Dark theme
54
+
55
+ <img src="https://i.ibb.co/hR78T8q0/map-dark.jpg" alt="MapWire dark theme showing Midtown Manhattan" width="100%">
56
+
57
+ ### Search and controls
58
+
59
+ <img src="https://i.ibb.co/fYBMMCQ1/map-search.jpg" alt="MapWire search site with theme controls, search box and map controls" width="100%">
60
+
61
+ ---
62
+
63
+ ## ๐Ÿ“ฆ Installation
64
+
65
+ ~~~bash
66
+ npm install mapwire maplibre-gl
67
+ ~~~
68
+
69
+ MapLibre is a peer dependency so applications can pin the MapLibre version used by the rest of
70
+ their stack.
71
+
72
+ **Requirements**
73
+
74
+ * A modern browser with WebGL support
75
+ * MapLibre GL JS 5 or 6
76
+ * A client-side page where the map container exists
77
+ * Access to the OpenFreeMap style and tile services
78
+
79
+ ---
80
+
81
+ ## โšก Quick Start
82
+
83
+ ### 1. Create a sized container
84
+
85
+ ~~~html
86
+ <div id="map" style="height: 100vh"></div>
87
+ ~~~
88
+
89
+ The container must exist and have a non-zero height before creating the map.
90
+
91
+ ### 2. Import both stylesheets
92
+
93
+ ~~~js
94
+ import "maplibre-gl/dist/maplibre-gl.css";
95
+ import "mapwire/style.css";
96
+ ~~~
97
+
98
+ ### 3. Create the map
99
+
100
+ ~~~js
101
+ import * as maplibre from "maplibre-gl";
102
+ import { createMap } from "mapwire";
103
+
104
+ const map = await createMap({
105
+ maplibre,
106
+ container: "map",
107
+ center: [77.209, 28.6139],
108
+ zoom: 12,
109
+ });
110
+ ~~~
111
+
112
+ MapWire automatically:
113
+
114
+ 1. Fetches the current OpenFreeMap Liberty style.
115
+ 2. Applies the selected MapWire theme.
116
+ 3. Adds the extra flat landuse, commercial, sports-field, wetland and path layers.
117
+ 4. Registers the bundled Google-style POI marker images.
118
+ 5. Returns a MapLibre map instance with MapWire lifecycle helpers attached.
119
+
120
+ ---
121
+
122
+ ## ๐Ÿงฉ Framework Integration
123
+
124
+ MapWire uses a vanilla API, so framework adapters are ordinary lifecycle wrappers rather than large
125
+ framework-specific dependencies.
126
+
127
+ <details>
128
+ <summary><strong>React</strong></summary>
129
+
130
+ ~~~jsx
131
+ import { useEffect, useRef } from "react";
132
+ import * as maplibre from "maplibre-gl";
133
+ import "maplibre-gl/dist/maplibre-gl.css";
134
+ import "mapwire/style.css";
135
+ import { createMap } from "mapwire";
136
+
137
+ export default function Map() {
138
+ const container = useRef(null);
139
+
140
+ useEffect(() => {
141
+ let disposed = false;
142
+ let map;
143
+
144
+ createMap({
145
+ maplibre,
146
+ container: container.current,
147
+ center: [77.209, 28.6139],
148
+ zoom: 12,
149
+ }).then((created) => {
150
+ if (disposed) created.destroy();
151
+ else map = created;
152
+ });
153
+
154
+ return () => {
155
+ disposed = true;
156
+ map?.destroy();
157
+ };
158
+ }, []);
159
+
160
+ return <div ref={container} style={{ height: "100vh" }} />;
161
+ }
162
+ ~~~
163
+
164
+ </details>
165
+
166
+ <details>
167
+ <summary><strong>Vue 3</strong></summary>
168
+
169
+ ~~~vue
170
+ <script setup>
171
+ import { onBeforeUnmount, onMounted, ref } from "vue";
172
+ import * as maplibre from "maplibre-gl";
173
+ import "maplibre-gl/dist/maplibre-gl.css";
174
+ import "mapwire/style.css";
175
+ import { createMap } from "mapwire";
176
+
177
+ const container = ref(null);
178
+ let map;
179
+
180
+ onMounted(async () => {
181
+ map = await createMap({
182
+ maplibre,
183
+ container: container.value,
184
+ center: [77.209, 28.6139],
185
+ zoom: 12,
186
+ });
187
+ });
188
+
189
+ onBeforeUnmount(() => map?.destroy());
190
+ </script>
191
+
192
+ <template>
193
+ <div ref="container" style="height: 100vh" />
194
+ </template>
195
+ ~~~
196
+
197
+ </details>
198
+
199
+ <details>
200
+ <summary><strong>Svelte</strong></summary>
201
+
202
+ ~~~svelte
203
+ <script>
204
+ import { onMount } from "svelte";
205
+ import * as maplibre from "maplibre-gl";
206
+ import "maplibre-gl/dist/maplibre-gl.css";
207
+ import "mapwire/style.css";
208
+ import { createMap } from "mapwire";
209
+
210
+ let container;
211
+ let map;
212
+
213
+ onMount(() => {
214
+ let disposed = false;
215
+ createMap({
216
+ maplibre,
217
+ container,
218
+ center: [77.209, 28.6139],
219
+ zoom: 12,
220
+ }).then((created) => {
221
+ if (disposed) created.destroy();
222
+ else map = created;
223
+ });
224
+ return () => {
225
+ disposed = true;
226
+ map?.destroy();
227
+ };
228
+ });
229
+ </script>
230
+
231
+ <div bind:this={container} style="height: 100vh" />
232
+ ~~~
233
+
234
+ </details>
235
+
236
+ <details>
237
+ <summary><strong>Angular, Astro, Nuxt and SvelteKit</strong></summary>
238
+
239
+ Create the map only in browser-side lifecycle code:
240
+
241
+ * Angular: ngAfterViewInit and ngOnDestroy
242
+ * Astro: a client-only component
243
+ * Nuxt: ClientOnly or onMounted
244
+ * SvelteKit: onMount and its cleanup callback
245
+
246
+ Never create the map during server-side rendering.
247
+
248
+ </details>
249
+
250
+ Complete framework examples are available in the **examples/** directory.
251
+
252
+ ---
253
+
254
+ ## ๐ŸŽ›๏ธ API Reference
255
+
256
+ ### createMap(options)
257
+
258
+ Creates a themed MapLibre map and returns a Promise.
259
+
260
+ | Option | Type | Default | Description |
261
+ |---|---|---|---|
262
+ | container | string or HTMLElement | required | Map container or its element id |
263
+ | maplibre | MapLibre module | dynamic import | Pass an already imported MapLibre module |
264
+ | theme | light, dark or amoled | light | Initial MapWire theme |
265
+ | style | string or object | OpenFreeMap Liberty | OpenMapTiles-compatible base style |
266
+ | styleOptions | object | empty | Low-level mapwireStyle options |
267
+ | markers | boolean or object | true | Enable POI markers or pass marker options |
268
+
269
+ Every other property is passed to the MapLibre Map constructor, including center, zoom, pitch,
270
+ bearing, minZoom, maxZoom, dragRotate and interactive.
271
+
272
+ ### Map methods
273
+
274
+ | Method | Description |
275
+ |---|---|
276
+ | map.setTheme(theme) | Switch between light, dark and amoled |
277
+ | map.setStyleOptions(options) | Merge style options and reapply the active theme |
278
+ | map.getMapLibre() | Return the native MapLibre map |
279
+ | map.destroy() | Remove the map and release its resources |
280
+
281
+ The returned object is the MapLibre Map instance with these helpers attached, so existing MapLibre
282
+ camera, event, source and layer APIs remain available.
283
+
284
+ ~~~js
285
+ map.setTheme("dark");
286
+ map.setStyleOptions({ topography: true });
287
+
288
+ map.getMapLibre().addControl(
289
+ new maplibre.NavigationControl({ visualizePitch: true })
290
+ );
291
+
292
+ map.destroy();
293
+ ~~~
294
+
295
+ ### mapwireStyle(base, options)
296
+
297
+ Use the low-level API when an application already owns a MapLibre instance.
298
+
299
+ ~~~js
300
+ import { mapwireStyle } from "mapwire";
301
+
302
+ map.setStyle(
303
+ mapwireStyle(baseStyle, {
304
+ mode: "dark",
305
+ roadWidthScale: 1,
306
+ roadEdges: true,
307
+ topography: false,
308
+ poiIconSize: 0.8,
309
+ })
310
+ );
311
+ ~~~
312
+
313
+ | Option | Default | Description |
314
+ |---|---|---|
315
+ | mode | light | light, dark or amoled |
316
+ | roadWidthScale | 1 | Real-world road widths; 0 keeps the base style widths |
317
+ | roadEdges | true | Darker road edge for divided-road separation |
318
+ | topography | false | Adds shaded terrain relief |
319
+ | poiIconSize | 0.8 | POI marker size |
320
+ | glyphs | base style | Override the label glyph server |
321
+
322
+ The base style is cloned and never modified. Reapplying the theme is idempotent.
323
+
324
+ ---
325
+
326
+ ## ๐ŸŽจ Themes
327
+
328
+ | Token | Light | Dark | AMOLED |
329
+ |---|---|---|---|
330
+ | Land | #f8f7f7 | #162640 | #000000 |
331
+ | Water | #90daee | #000d2a | #04080c |
332
+ | Vegetation | #d3f8e1 | #0d3847 | #050e0a |
333
+ | Local roads | #aab9c9 | #3d5a77 | #1a1d22 |
334
+ | Highways | #8aa4c0 | #476789 | #22262c |
335
+ | Buildings | #e8e9ed | #1c3b69 | #0a0c0f |
336
+ | Labels | #3c4043 | #c3cad6 | #d0d4dc |
337
+
338
+ Switch themes at runtime:
339
+
340
+ ~~~js
341
+ map.setTheme("light");
342
+ map.setTheme("dark");
343
+ map.setTheme("amoled");
344
+ ~~~
345
+
346
+ ---
347
+
348
+ ## ๐Ÿ› ๏ธ Customisation
349
+
350
+ ### Use another OpenMapTiles style
351
+
352
+ ~~~js
353
+ const map = await createMap({
354
+ maplibre,
355
+ container: "map",
356
+ style: "https://your-tileserver.example/styles/streets.json",
357
+ theme: "light",
358
+ });
359
+ ~~~
360
+
361
+ The provider should expose the standard OpenMapTiles layer schema, including water, landuse,
362
+ transportation, building, place and poi layers.
363
+
364
+ ### Custom POI marker options
365
+
366
+ ~~~js
367
+ const map = await createMap({
368
+ maplibre,
369
+ container: "map",
370
+ markers: {
371
+ pixelRatio: window.devicePixelRatio,
372
+ satellite: false,
373
+ },
374
+ });
375
+ ~~~
376
+
377
+ For custom icons and marker drawing, import the marker subpath:
378
+
379
+ ~~~js
380
+ import {
381
+ registerPoiMarkers,
382
+ poiMarkerImage,
383
+ drawPoiMarker,
384
+ } from "mapwire/markers";
385
+ ~~~
386
+
387
+ ### Theme source files
388
+
389
+ * theme/palette.js โ€” semantic colour tokens
390
+ * theme/style.js โ€” layer rules and MapWire-added layers
391
+ * theme/poi-categories.js โ€” OpenMapTiles class to marker category mapping
392
+
393
+ ---
394
+
395
+ ## ๐Ÿค– Using MapWire with AI Coding Agents
396
+
397
+ Point an agent at:
398
+
399
+ * **AGENTS.md** โ€” integration rules, browser lifecycle, cleanup and attribution
400
+ * **llms.txt** โ€” compact API index
401
+ * **examples/** โ€” complete framework entry points
402
+
403
+ A suitable agent instruction is:
404
+
405
+ > Use MapWire from the repository root. Read AGENTS.md first. Install mapwire and maplibre-gl,
406
+ > import both stylesheets, create the map with createMap(), keep attribution visible, and call
407
+ > map.destroy() during framework cleanup.
408
+
409
+ MapWire is intended to be usable without an agent reverse-engineering MapLibre style internals.
410
+
411
+ ---
412
+
413
+ ## ๐Ÿ’ป Local Development
414
+
415
+ ~~~bash
416
+ git clone https://github.com/shubh7mx/mapwire.git
417
+ cd mapwire
418
+ npm test
419
+ npm run serve
420
+ ~~~
421
+
422
+ Open:
423
+
424
+ * **http://localhost:8080/** โ€” light, dark, AMOLED and terrain-relief demo
425
+ * **http://localhost:8080/test/** โ€” search box, locate controls and theme switcher
426
+
427
+ The package has no install-time runtime dependencies. MapLibre is loaded as a peer dependency or
428
+ passed in directly by the local demos.
429
+
430
+ ---
431
+
432
+ ## ๐Ÿ—‚๏ธ Project Structure
433
+
434
+ ~~~text
435
+ mapwire/
436
+ โ”œโ”€โ”€ AGENTS.md Coding-agent integration contract
437
+ โ”œโ”€โ”€ llms.txt Compact machine-readable API index
438
+ โ”œโ”€โ”€ create-map.js High-level MapLibre lifecycle
439
+ โ”œโ”€โ”€ mapwire.js Public low-level style entry
440
+ โ”œโ”€โ”€ poi-markers.js Marker drawing and registration
441
+ โ”œโ”€โ”€ theme/
442
+ โ”‚ โ”œโ”€โ”€ palette.js Semantic theme tokens
443
+ โ”‚ โ”œโ”€โ”€ poi-categories.js POI taxonomy and marker colours
444
+ โ”‚ โ””โ”€โ”€ style.js OpenMapTiles style transformation
445
+ โ”œโ”€โ”€ examples/
446
+ โ”‚ โ”œโ”€โ”€ vanilla/
447
+ โ”‚ โ”œโ”€โ”€ react/
448
+ โ”‚ โ””โ”€โ”€ vue/
449
+ โ”œโ”€โ”€ fonts/ Material Icons and licence
450
+ โ”œโ”€โ”€ test/ Search and controls demo
451
+ โ””โ”€โ”€ selftest.js Offline behaviour suite
452
+ ~~~
453
+
454
+ ---
455
+
456
+ ## ๐Ÿงช Verification
457
+
458
+ ~~~bash
459
+ npm test
460
+ ~~~
461
+
462
+ The offline suite covers:
463
+
464
+ * Theme token placement and immutability
465
+ * Light, dark and AMOLED output
466
+ * Flat landuse and added map layers
467
+ * Road widths, edges and buildings
468
+ * POI category mapping and marker geometry
469
+ * mapwireStyle idempotence and expression structure
470
+ * createMap lifecycle, theme switching and cleanup
471
+ * Licence files, agent docs and public integration paths
472
+
473
+ Current result: **95 checks passing**.
474
+
475
+ ---
476
+
477
+ ## ๐Ÿฉบ Troubleshooting
478
+
479
+ ### The page is blank
480
+
481
+ 1. Give the map container an explicit height.
482
+ 2. Create the map after the container exists.
483
+ 3. Serve the project over HTTP instead of opening an HTML file directly.
484
+ 4. Check that MapLibre CSS and mapwire/style.css are both imported.
485
+
486
+ ### The map canvas exists but tiles do not render
487
+
488
+ Check network access to:
489
+
490
+ * tiles.openfreemap.org
491
+ * unpkg.com, when using the CDN demos
492
+
493
+ Check the browser console for WebGL or style validation errors.
494
+
495
+ ### The map appears during SSR and then crashes
496
+
497
+ Create the map only in browser-side lifecycle code. Use client-only wrappers in Astro, Nuxt or
498
+ SvelteKit.
499
+
500
+ ### POI icons appear without glyphs
501
+
502
+ The custom font may not have loaded. Keep the fonts/ directory in the installed package or pass a
503
+ hosted font URL through marker options.
504
+
505
+ ### Road shields print MapLibre warnings
506
+
507
+ The default OpenFreeMap style currently emits three shield-filter warnings with some MapLibre
508
+ versions. They do not prevent rendering and originate in the base style.
509
+
510
+ ---
511
+
512
+ ## โš ๏ธ Scope
513
+
514
+ MapWire renders maps. It does not provide:
515
+
516
+ * Search or geocoding
517
+ * Directions or routing
518
+ * Live traffic
519
+ * Place reviews or opening-hours data
520
+ * Satellite imagery
521
+
522
+ The included search demo uses Nominatim and should be replaced with your own geocoder for production
523
+ traffic.
524
+
525
+ ---
526
+
527
+ ## ๐Ÿ“œ Attribution and Licence
528
+
529
+ Keep MapLibre's attribution control visible. The default map uses OpenStreetMap data through
530
+ OpenFreeMap and requires visible credit.
531
+
532
+ * **MapWire source:** MIT โ€” see LICENSE
533
+ * **Material Icons:** Apache-2.0 โ€” see fonts/LICENSE-APACHE-2.0.txt
534
+ * **MapLibre GL JS:** BSD-3-Clause peer dependency
535
+ * **OpenStreetMap data:** Open Database License and provider attribution
536
+ * **Google Maps:** trademark of Google LLC; MapWire is not affiliated with or endorsed by Google
537
+
538
+ See THIRD_PARTY_NOTICES.md for the complete licensing breakdown.
539
+
540
+ ---
541
+
542
+ <div align="center">
543
+
544
+ ### Built for open maps and any framework.
545
+
546
+ If MapWire saves you from assembling another MapLibre style stack, give the repository a โญ.
547
+
548
+ </div>
@@ -0,0 +1,34 @@
1
+ # Third-party notices
2
+
3
+ ## MapWire source
4
+
5
+ MapWire source code and documentation are licensed under the MIT License. See LICENSE.
6
+
7
+ ## Material Icons
8
+
9
+ fonts/MaterialIcons-Regular.ttf is Google's Material Icons font.
10
+
11
+ Copyright Google LLC.
12
+
13
+ Licensed under the Apache License, Version 2.0. The complete licence is included at
14
+ fonts/LICENSE-APACHE-2.0.txt.
15
+
16
+ The font is redistributed unchanged. Its SHA-256 is:
17
+
18
+ EF149F08BDD2FF09A4E2C8573476B7B0F3FBB15B623954ADE59899E7175BEDDA
19
+
20
+ ## MapLibre GL JS
21
+
22
+ MapLibre GL JS is a peer dependency and is not bundled in this package. It is distributed by the
23
+ MapLibre project under the BSD-3-Clause licence.
24
+
25
+ ## OpenStreetMap and OpenFreeMap
26
+
27
+ MapWire does not bundle map data. Its default provider fetches OpenStreetMap-derived vector tiles
28
+ from OpenFreeMap at runtime. Applications must retain the attribution supplied by the loaded style.
29
+ OpenStreetMap data is subject to the Open Database License; OpenFreeMap hosting terms also apply.
30
+
31
+ ## Google Maps
32
+
33
+ Google Maps is a trademark of Google LLC. MapWire uses a Google Maps-inspired visual theme and is
34
+ not affiliated with or endorsed by Google. It uses no Google map tiles, SDK, API key or account.