Closed trbmcginnis closed 5 years ago
An example where one arrow showed up:
An example where no arrows showed up:
They also appear/disappear depending on the zoom level, without drawing a new annotation. See gif below
oh weird! maybe this can be fixed with just styling ! great catch, @hannahkates
I believe this is due to the image for the arrowhead not being added to the map in time.
The icon gets added using https://docs.mapbox.com/mapbox-gl-js/api/#map#addimage, I am not sure how, but I think we need to confirm that it's available before trying to render things that use it.
Closing, looks like this was fixed successfully.
When a user draws their first annotation, the arrows will not fully show up (sometimes there's one arrow, sometimes there's none).
Zooming in and out will make the arrows disappear and reappear.
The arrows on that first annotation will show up permanently when: