/GoogleMapsAnnotationPlayground

Demonstrates pain I am experiencing when attempting to leverage iconViews on device

Primary LanguageSwift

GoogleMapsSDK Marker Transitions Demo

Demonstration of potential approach for animating pins between states

Solved Issue (As of v8.0.0)

Observed Issue (As of v8.0.0)

Changing zIndex results in blink update similar to reported issue above

Demo
GooglezIndexDemo

Raw Video https://github.com/dmiluski/GoogleMapsAnnotationPlayground/assets/5083390/4a231a38-292d-404d-8616-19cd0b27c00a

Setup

Due to lack of SPM support, the easiest setup method involves installing Follow xcFramework Manual setup instructions

  1. Download SDK Source files: GoogleMaps-8.0.0

  2. Drag the following XCFrameworks into the "Frameworks" folder in the ProjectDirectory

    • ProjectDir/Frameworks/GoogleMapsBase.xcframework
    • ProjectDir/Frameworks/GoogleMaps.xcframework
    • ProjectDir/Frameworks/GoogleMapsCore.xcframework
    • (Premium Plan customers only) GoogleMaps-x.x.x/GoogleMapsM4B.xcframework
  3. Set your API key here

Earlier Example usage

Using a simpler case and only chancing color
Using the buttons in lower right, add, then update the marker (toggling between colors). On each update that enables, then disables tracksViewChanges the marker iconView will disappear, then re-appear on screen. Slow down the video (scrub it), and you will notice that you can see through the square marker between each update.
RPReplay_Final1678985724.MP4
Simulator Demo (No blinking)
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-03-01.at.12.24.48.mp4
Run on device (Blinking when content is updated
If you download and scrub the video, you'll notice the marker's iconView is visible, disappears, then reappears on screen
RPReplay_Final1677702024.MP4