hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

How to see the Compass in map? can do? #29

Closed gabrielGallardo closed 8 years ago

hansemannn commented 8 years ago

You can use the myLocationEnabled for this.

gabrielGallardo commented 8 years ago

How to use this property?, i try this:

var mapa = maps.createView({ mapType: maps.MAP_TYPE_NORMAL, myLocationEnabled: true });

But nothing.

gabrielGallardo commented 8 years ago

Sorry, this works fine, however I would like to see the compass that appears on google maps on the top right, is it possible?

hansemannn commented 8 years ago

Nope, that's not exposed by the Google Maps SDK.

gabrielGallardo commented 8 years ago

Ok, thanks.

yozef commented 8 years ago

Actually there is: https://developers.google.com/maps/documentation/ios-sdk/controls#compass

GMSMapView *mapView_;
mapView_.settings.compassButton = YES;
yozef commented 8 years ago

There is a PR for compassButton and more...

hansemannn commented 8 years ago

Reopening! I read the issue too fast. Of course myLocationEnabled != compassEnabled. @yozef do you want to add it to your existing PR? EDIT: https://github.com/hansemannn/ti.googlemaps/pull/30 already takes care of it, great! 🚀