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?

Oscar
  • 85
  • 1
  • 4
kidCoder
  • 354
  • 4
  • 17
  • Which Google Maps SDK version you are using? Can you also post the code you use to show the blue icon? – ztan Jan 06 '15 at 18:30
  • I am using Google Maps 1.9.1 and the code I am using to show my location is `(self.view as GMSMapView).myLocationEnabled = true` – kidCoder Jan 07 '15 at 00:08
  • 1
    Im experiencing the exact same problem. Did you ever figure it out? – tskulbru Feb 06 '15 at 14:02
  • 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. – kidCoder Feb 07 '15 at 20:40

2 Answers2

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

zhm
  • 161
  • 4
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

Dre
  • 4,298
  • 30
  • 39
Tipxbomb
  • 81
  • 2
  • 9