@superrouteca/smap-react 1.0.0 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Changelog
2
2
 
3
- ## 1.0.0 (unreleased)
3
+ ## 1.0.2 — 2026-10-27
4
+
5
+ - Requires `@superrouteca/smap` 1.0.2, where a layer also takes a bare GeoJSON geometry (a LineString, a Polygon, …)
6
+ and draws it as one feature; before, such a layer stayed empty.
7
+
8
+ ## 1.0.1 — 2026-10-27
9
+
10
+ - Every map shows a small sMap badge (the sMap icon and name on a semi-transparent pill that reads on all five colour
11
+ schemes) in its bottom-right corner, left of the attribution (above it when the map is too narrow for both). It is
12
+ always shown and is not a link; the map data attribution stays visible. It comes from `@superrouteca/smap` 1.0.1,
13
+ now required.
14
+ - The package description starts with "sMap"; the README starts with the sMap logo.
15
+
16
+ ## 1.0.0 — 2026-10-27
4
17
 
5
18
  - `<SMap>` with access, style, language, camera and 3D building props; the ref and `useSMap()` give the map.
6
19
  - `<Points>`, `<Lines>` and `<Polygons>` added, updated and removed with the components, with `onTap`.
package/README.md CHANGED
@@ -1,9 +1,14 @@
1
- # @superrouteca/smap-react
1
+ <picture>
2
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Goodneo-Solutions/smap-sdk/main/assets/smap-logo-dark.svg">
3
+ <img src="https://raw.githubusercontent.com/Goodneo-Solutions/smap-sdk/main/assets/smap-logo.svg" alt="sMap" height="56">
4
+ </picture>
5
+
6
+ # sMap for React: `@superrouteca/smap-react`
2
7
 
3
8
  React components for maps from Superroute's sMap service: `<SMap>`, `<Points>`, `<Lines>`, `<Polygons>` and the
4
9
  `useSMap()` hook, over [`@superrouteca/smap`](../js).
5
10
 
6
- - Version 1.0.0, MIT licence (see `LICENSE` at the repository root)
11
+ - Version 1.0.2, MIT licence (see `LICENSE` at the repository root)
7
12
  - React 18 or later; TypeScript types included
8
13
  - Server rendering (Next.js App Router included): the components are client components and the map is created only
9
14
  in the browser, after mounting
@@ -80,7 +85,8 @@ replaces the data and keeps the look, new `options` draw the layer again. Higher
80
85
 
81
86
  ## Data attribution
82
87
 
83
- The map data credit stays visible on every map, as the data licence requires.
88
+ The map data credit stays visible on every map, as the data licence requires. Every map shows a small sMap badge in
89
+ its bottom-right corner, left of the attribution (above it when the map is too narrow for both).
84
90
 
85
91
  ## Example and tests
86
92
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@superrouteca/smap-react",
3
- "version": "1.0.0",
4
- "description": "React components for maps from Superroute's sMap service.",
3
+ "version": "1.0.2",
4
+ "description": "sMap for React: components for maps from Superroute's sMap service.",
5
5
  "license": "MIT",
6
6
  "author": "Goodneo Solutions",
7
7
  "homepage": "https://github.com/Goodneo-Solutions/smap-sdk/tree/main/react#readme",
@@ -51,7 +51,7 @@
51
51
  "react": ">=18"
52
52
  },
53
53
  "dependencies": {
54
- "@superrouteca/smap": "1.0.0"
54
+ "@superrouteca/smap": "1.0.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@testing-library/react": "16.3.3",