Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ios/Overlay/Marker/RNCNaverMapMarker.mm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ - (void)setImage:(facebook::react::RNCNaverMapMarkerImageStruct)image {
_imageCanceller = nmap::getImage([self bridge], image, ^(NMFOverlayImage* _Nullable image) {
dispatch_async(dispatch_get_main_queue(), [self, image]() {
self.inner.alpha = 1;
self.inner.iconImage = image;
if (image) {
self.inner.iconImage = image;
Comment on lines +103 to +104
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore marker alpha when callback image is nil

setImage hides the marker with _inner.alpha = 0 before requesting the image, but this change now restores alpha only inside if (image). Because nmap::getImage can legally call back with nil (e.g., unsupported symbol or failed image resolution), the marker remains permanently transparent after the callback, so users see missing markers instead of a fallback/default icon. Keep alpha restoration outside the nil guard (and optionally preserve/set a fallback icon) to avoid this regression.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify code as you suggested.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
self->_imageCanceller = nil;
[self ensureTouchHandler]; // Re-ensure touch handler after image is set
});
Expand Down
Loading