iOS 8 Google Maps SDK myLocation icon bubble graphical glitch
Asked Answered
L

2

11

I am learning about the Google Maps SDK and getting to know Swift, and when I create a mapview centered on my location using myLocation = true, the location bubble shows up, but it appears with a square mask around it like this

image

I am not performing any operation on the location indicator, at least not intentionally.

Has anyone ran into this issue before?

Lucaslucca answered 5/1, 2015 at 21:2 Comment(4)
Which Google Maps SDK version you are using? Can you also post the code you use to show the blue icon?Dramaturgy
I am using Google Maps 1.9.1 and the code I am using to show my location is (self.view as GMSMapView).myLocationEnabled = trueLucaslucca
Im experiencing the exact same problem. Did you ever figure it out?Nabila
Nope, but a friend counseled me to use MapKit instead. His logic, which I see, is that when users use an iOS app, and a map is embedded, they expect to see a MapKit map, because those maps conform to iOS's visual style. If you really need guidance in your app, then GMaps is the way to go though.Lucaslucca
O
12

This is a known issue when running the Simulator. It works correctly on a real device. It's marked as WontFix on the issue tracker.

https://code.google.com/p/gmaps-api-issues/issues/detail?id=5113

Occur answered 22/2, 2015 at 20:30 Comment(0)
P
2

Just like zhm said. It is a known problem with Xcode simulator and works fine on the real iOS device. I'm adding screenshots of the difference:

From Simulator

From iPhone

Plautus answered 8/5, 2016 at 14:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.