Skip to content

Commit 46a07bb

Browse files
committed
fix(ios): white title in callout
1 parent 997b1bd commit 46a07bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ui-mapbox/index.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,14 +1372,14 @@ export class Mapbox extends MapboxCommon implements MapboxApi {
13721372

13731373
createCalloutView(marker: MapboxMarker) {
13741374
if (Trace.isEnabled()) {
1375-
CLog(CLogTypes.info, 'createCalloutView():', marker.id, marker.title, !!this._reusableCalloutView);
1375+
CLog(CLogTypes.info, 'createCalloutView():', marker.id, marker.title, marker?.subtitle, !!this._reusableCalloutView);
13761376
}
13771377
if (this._reusableCalloutView) {
13781378
const title = this._reusableCalloutView.getViewById<Label>('title');
13791379
title.text = marker?.title || '';
13801380
const subtitle = this._reusableCalloutView.getViewById<Label>('subtitle');
13811381
subtitle.text = marker?.subtitle;
1382-
subtitle.visibility = marker?.subtitle ? 'visible' : 'collapse';
1382+
// subtitle.visibility = marker?.subtitle ? 'visible' : 'collapse';
13831383
} else {
13841384
this._reusableCalloutView = createInfoWindowView(marker.title, marker.subtitle);
13851385
}

src/ui-mapbox/markers/Marker.common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export function createInfoWindowView(title, snippet) {
99
view.width = 'auto'; // WRAP_CONTENT
1010
view.height = 'auto'; // WRAP_CONTENT
1111
view.borderRadius = 12;
12+
view.color = new Color('#555');
1213
view['shadowColor'] = '#000';
1314
view['shadowOpacity'] = 0.25;
1415
view['shadowRadius'] = 8;

0 commit comments

Comments
 (0)