@nativescript-community/ui-mapbox 7.0.15 → 7.0.18
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 +12 -0
- package/index.android.d.ts +2 -2
- package/index.android.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.0.18](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.17...v7.0.18) (2026-03-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
|
9
|
+
|
|
10
|
+
## [7.0.17](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.14...v7.0.17) (2026-03-11)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
|
13
|
+
|
|
14
|
+
## [7.0.16](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.15...v7.0.16) (2026-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
|
17
|
+
|
|
6
18
|
## [7.0.15](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.14...v7.0.15) (2026-03-10)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
package/index.android.d.ts
CHANGED
|
@@ -323,7 +323,7 @@ export declare class Mapbox extends MapboxCommon implements MapboxApi {
|
|
|
323
323
|
/**
|
|
324
324
|
* remove source by id
|
|
325
325
|
*/
|
|
326
|
-
removeSource(id: string, nativeMap?:
|
|
326
|
+
removeSource(id: string, nativeMap?: com.mapbox.maps.MapboxMap): Promise<void>;
|
|
327
327
|
/**
|
|
328
328
|
* a rough analogue to the mapbox-gl-js addLayer() method
|
|
329
329
|
*
|
|
@@ -350,7 +350,7 @@ export declare class Mapbox extends MapboxCommon implements MapboxApi {
|
|
|
350
350
|
*
|
|
351
351
|
* @param {string} id
|
|
352
352
|
*/
|
|
353
|
-
removeLayer(id: string, nativeMap?:
|
|
353
|
+
removeLayer(id: string, nativeMap?: com.mapbox.maps.MapboxMap): Promise<void>;
|
|
354
354
|
private getSource;
|
|
355
355
|
/**
|
|
356
356
|
* @deprecated
|
package/index.android.js
CHANGED
|
@@ -2351,7 +2351,7 @@ export class Mapbox extends MapboxCommon {
|
|
|
2351
2351
|
reject('No map has been loaded');
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
|
-
const isRemoved = theMap.getStyle().
|
|
2354
|
+
const isRemoved = theMap.getStyle().removeStyleSource(id);
|
|
2355
2355
|
if (!isRemoved) {
|
|
2356
2356
|
reject(`Could not remove source with id: ${id}`);
|
|
2357
2357
|
}
|
|
@@ -2400,12 +2400,12 @@ export class Mapbox extends MapboxCommon {
|
|
|
2400
2400
|
if (belowLayerId) {
|
|
2401
2401
|
// TODO: missing extension typings
|
|
2402
2402
|
//@ts-ignore
|
|
2403
|
-
|
|
2403
|
+
theMap.getStyle().addLayerBelow(layer.getNativeInstance(), belowLayerId);
|
|
2404
2404
|
}
|
|
2405
2405
|
else {
|
|
2406
2406
|
// TODO: missing extension typings
|
|
2407
2407
|
//@ts-ignore
|
|
2408
|
-
|
|
2408
|
+
theMap.getStyle().addLayer(layer.getNativeInstance());
|
|
2409
2409
|
}
|
|
2410
2410
|
}
|
|
2411
2411
|
/**
|
|
@@ -2417,7 +2417,7 @@ export class Mapbox extends MapboxCommon {
|
|
|
2417
2417
|
*/
|
|
2418
2418
|
async removeLayer(id, nativeMap) {
|
|
2419
2419
|
const theMap = nativeMap || this._mapboxMapInstance;
|
|
2420
|
-
theMap.getStyle().
|
|
2420
|
+
theMap.getStyle().removeStyleLayer(id);
|
|
2421
2421
|
if (Trace.isEnabled()) {
|
|
2422
2422
|
CLog(CLogTypes.info, 'Mapbox:removeLayer(): after removing layer');
|
|
2423
2423
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript-community/ui-mapbox",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.18",
|
|
4
4
|
"description": "Interactive, thoroughly customizable maps powered by vector tiles and OpenGL.",
|
|
5
5
|
"main": "index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@nativescript-community/perms": "^3.0.4"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "06d0853534ec79c7921b53bc7b5ae2c15bba0c36"
|
|
59
59
|
}
|