hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ti.googlemaps on alloy

lazzaratom opened this issue · comments

Hi,
does this module support titanium alloy development?
I'm trying to do some test but without success.
thank you.

Of course:
.xml:

<Alloy>
  <Window id="win">
      <View id="mapview" module="ti.googlemaps"/>
....

.js:

var Map = require('ti.googlemaps');	// iOS Google Maps (native ti.googlemaps)
Map.setAPIKey("xxx"); // iOS Google API key from Console

// MapView Settings
$.mapview.myLocationButton = true;
$.mapview.addEventListener(...

Side-note: I think you can event do event-listeners via the Alloy-syntax.