@superrouteca/smap-react-native 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 +13 -1
- package/README.md +11 -4
- package/android/build.gradle +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 1.0.
|
|
3
|
+
## 1.0.2 — 2026-10-27
|
|
4
|
+
|
|
5
|
+
- Version 1.0.2, released with the Web SDK fix; no change to the React Native SDK.
|
|
6
|
+
|
|
7
|
+
## 1.0.1 — 2026-10-27
|
|
8
|
+
|
|
9
|
+
- Every map shows a small sMap badge (the sMap icon and name on a semi-transparent pill that reads on all five colour
|
|
10
|
+
schemes) in its bottom-right corner, beside the attribution button (left of it on iOS; on Android the button keeps
|
|
11
|
+
the bottom-left corner). It is always shown and is not a link; the map data attribution stays visible. It comes from
|
|
12
|
+
the sMap Android and iOS SDKs 1.0.1, now the default.
|
|
13
|
+
- The package description starts with "sMap"; the README starts with the sMap logo.
|
|
14
|
+
|
|
15
|
+
## 1.0.0 — 2026-10-27
|
|
4
16
|
|
|
5
17
|
- `<SMap>` (a New Architecture native view over the sMap Android and iOS SDKs) with access, style, language, camera and
|
|
6
18
|
3D building props; the ref and `useSMap()` give the map.
|
package/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
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 Native: `@superrouteca/smap-react-native`
|
|
2
7
|
|
|
3
8
|
A React Native map view for Superroute's sMap service, over the sMap Android and iOS SDKs: five colour schemes,
|
|
4
9
|
labels in any language, your points, lines and areas drawn on the GPU (clustered or not), 3D buildings and areas, and
|
|
5
10
|
tokens that renew themselves. The same components as [`@superrouteca/smap-react`](../react): `<SMap>`, `<Points>`,
|
|
6
11
|
`<Lines>`, `<Polygons>`, `useSMap()`.
|
|
7
12
|
|
|
8
|
-
- Version 1.0.
|
|
13
|
+
- Version 1.0.2, MIT licence (see `LICENSE` at the repository root)
|
|
9
14
|
- React Native 0.81 or later with the New Architecture (a Fabric component); built and tested with 0.88
|
|
10
15
|
- Android 7.0 (API 24) and later, iOS 15.1 and later
|
|
11
16
|
|
|
@@ -15,7 +20,7 @@ tokens that renew themselves. The same components as [`@superrouteca/smap-react`
|
|
|
15
20
|
npm install @superrouteca/smap-react-native
|
|
16
21
|
```
|
|
17
22
|
|
|
18
|
-
**Android.** The sMap Android SDK comes from JitPack (`com.github.Goodneo-Solutions:smap-sdk:1.0.
|
|
23
|
+
**Android.** The sMap Android SDK comes from JitPack (`com.github.Goodneo-Solutions:smap-sdk:1.0.2`); the package
|
|
19
24
|
adds the JitPack repository itself. Set `smapAndroidVersion` in the root `ext { }` of `android/build.gradle` to use
|
|
20
25
|
another release tag.
|
|
21
26
|
|
|
@@ -102,7 +107,9 @@ without the identity.
|
|
|
102
107
|
|
|
103
108
|
## Data attribution
|
|
104
109
|
|
|
105
|
-
The map data credit stays visible on every map, as the data licence requires.
|
|
110
|
+
The map data credit stays visible on every map, as the data licence requires. Every map shows a small sMap badge in
|
|
111
|
+
its bottom-right corner, beside the attribution button (left of it on iOS; on Android the button keeps the bottom-left
|
|
112
|
+
corner).
|
|
106
113
|
|
|
107
114
|
## Example and tests
|
|
108
115
|
|
package/android/build.gradle
CHANGED
|
@@ -41,6 +41,6 @@ dependencies {
|
|
|
41
41
|
if (localSdk != null) {
|
|
42
42
|
api localSdk
|
|
43
43
|
} else {
|
|
44
|
-
api "com.github.Goodneo-Solutions:smap-sdk:${safeExtGet("smapAndroidVersion", "1.0.
|
|
44
|
+
api "com.github.Goodneo-Solutions:smap-sdk:${safeExtGet("smapAndroidVersion", "1.0.2")}"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superrouteca/smap-react-native",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "React Native map view for Superroute's sMap service, over the sMap Android and iOS SDKs.",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "sMap for React Native: a map view for Superroute's sMap service, over the sMap Android and iOS SDKs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Goodneo Solutions",
|
|
7
7
|
"homepage": "https://github.com/Goodneo-Solutions/smap-sdk/tree/main/react-native#readme",
|