You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Utilising the example for drawing a GeoJSON shown on the MapBox maples page (https://www.mapbox.com/ios-sdk/examples/line-geojson/) I wanted to add functionality to add an annotation at the start and end of the line. I've discovered that adding annotations through asynchronous background->foreground dispatch calls causes the annotations not to be rendered until the map is zoomed and thus redrawn
I'm using 2.1.2 as pulled down using Cocoapods. Perhaps there's an issue with pod. I'll have a go at using the latest binary/src and see if the issue is resolved for me.
It appears my local test project was using a newer version than 2.1.2, which indicates this has been fixed in master by some aspect of the recent annotation refactoring.
Until the 2.2.0 release, the solution here is to load annotations only after the map has finished loading itself, which, coincidentally, is also difficult to wrangle until 2.2.0. This is a sloppy hack, but...
Utilising the example for drawing a GeoJSON shown on the MapBox maples page (https://www.mapbox.com/ios-sdk/examples/line-geojson/) I wanted to add functionality to add an annotation at the start and end of the line. I've discovered that adding annotations through asynchronous background->foreground dispatch calls causes the annotations not to be rendered until the map is zoomed and thus redrawn
Reproduction code below
The text was updated successfully, but these errors were encountered: