mapbox / mapbox-gl-native-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and OpenGL
https://www.mapbox.com/mobile/
Other
210 stars 121 forks source link

Callout is not updated when annotation's title or subtitle changes #136

Open felixLam opened 7 years ago

felixLam commented 7 years ago

Platform: iOS Mapbox SDK version: 3.6.1

Steps to trigger behavior

  1. Add an annotation to the map that can present a callout with title and/or subtile
  2. Regularly update the annotation title/subtitle (e.g. every second to change a relative date display) via the properties' setters
  3. Select (tap or programmatically) the annotation to bring up the callout

Expected behavior

The updated property values for the title and subtitle are reflected in the callout.

This is what MapKit does (via KVO).

Actual behavior

The callout's content is only updated once closed and reopened.

felixLam commented 7 years ago

@jmkiley Any progress on this? Is there any more information that you need?

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

vin67 commented 5 years ago

Any progress on this? I have the same issue.

vin67 commented 5 years ago

Any progress on this? I have the same issue. Any workaround??? Thanks

stale[bot] commented 4 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

julianrex commented 4 years ago

Still valid.

ghost commented 4 years ago

Same issue. In my case with the user location annotation.

dlpgithub commented 4 years ago

Same problem here.

Map is loaded and shown. Annotations are loaded and shown. Tap on an Annotation opens the callout with the "initial Title and Subtitle" Tap anywhere else on the Map to close the Callout - Callout closes Tap again on the same Annotation (that has moved a bit)

Expected behavior:

Callout opens with the new Subtitle (i use the Subtitle for Latitude and Longitude)

Actual behavior

Callout opens with the "initial" Subtitle not the updated one. Actually it never changes unless you start the App again.