@nativescript-community/ui-mapbox 7.0.4 → 7.0.6
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 +8 -0
- package/index.ios.js +4 -2
- package/markers/Marker.android.js +0 -3
- package/markers/MarkerManager.android.js +8 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.6](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.5...v7.0.6) (2025-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
|
9
|
+
|
|
10
|
+
## [7.0.5](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.4...v7.0.5) (2025-10-30)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @nativescript-community/ui-mapbox
|
|
13
|
+
|
|
6
14
|
## [7.0.4](https://github.com/nativescript-community/ui-mapbox/compare/v7.0.3...v7.0.4) (2025-10-30)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
package/index.ios.js
CHANGED
|
@@ -634,7 +634,9 @@ export class Mapbox extends MapboxCommon {
|
|
|
634
634
|
if (this.selectedMarker && !this.isMarkerSelected(marker)) {
|
|
635
635
|
this.deselectMarker(this.selectedMarker);
|
|
636
636
|
}
|
|
637
|
-
|
|
637
|
+
if (marker.title || marker.subtitle) {
|
|
638
|
+
await this.showCalloutForMarkerById(marker.id + '');
|
|
639
|
+
}
|
|
638
640
|
resolve();
|
|
639
641
|
}
|
|
640
642
|
catch (ex) {
|
|
@@ -1379,7 +1381,7 @@ export class Mapbox extends MapboxCommon {
|
|
|
1379
1381
|
}
|
|
1380
1382
|
toggleCalloutForMarkerById(markerId) {
|
|
1381
1383
|
const m = this._markers.find((x) => `${x.id}` === markerId);
|
|
1382
|
-
if (!m || !m.id)
|
|
1384
|
+
if (!m || !m.id || (!m.title && !m.subtitle))
|
|
1383
1385
|
return;
|
|
1384
1386
|
const exists = this.bridgeInstance.hasViewAnnotationForMarker(markerId);
|
|
1385
1387
|
if (exists)
|
|
@@ -5,9 +5,6 @@ import { CLog, CLogTypes } from '../common';
|
|
|
5
5
|
*/
|
|
6
6
|
export class AndroidMarker {
|
|
7
7
|
constructor(opts) {
|
|
8
|
-
if (!opts.title && !opts.snippet) {
|
|
9
|
-
throw new Error('Marker should have either title or snippet!');
|
|
10
|
-
}
|
|
11
8
|
this.position = opts.position;
|
|
12
9
|
this.id = opts.id;
|
|
13
10
|
this.icon = opts.icon;
|
|
@@ -181,12 +181,14 @@ export class MarkerManager {
|
|
|
181
181
|
this.deselectMarker(this.selectedMarker);
|
|
182
182
|
}
|
|
183
183
|
this.selectedMarker = marker;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
this.
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
if (marker.title || marker.snippet) {
|
|
185
|
+
this.prepareViewAnnotation(marker, (e) => {
|
|
186
|
+
// info Window tapped.
|
|
187
|
+
if (!this.onInfoWindowTapped(marker)) {
|
|
188
|
+
this.deselectMarker(marker);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
190
192
|
}
|
|
191
193
|
deselectMarker(marker) {
|
|
192
194
|
if (!this.selectedMarker || marker.pointAnnotation !== this.selectedMarker.pointAnnotation) {
|
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.6",
|
|
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": "e006c63969ca612b1b82a8e23c4a5ceeba9ab086"
|
|
59
59
|
}
|