This shows you the differences between two versions of the page.
intents:google_maps [2016/05/07 09:48] 49.225.61.108 [Basic Map] |
intents:google_maps [2018/12/30 13:30] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Google Maps ====== | ||
- | This is the base information on using intents to call the Google Maps app. | ||
- | [[https:// | ||
- | |||
- | ===== Basic Map ===== | ||
- | This intent call the Google Maps app to draw a map with its centre at the location provided by latitude and longitude. | ||
- | |||
- | <code JavaScript simpleMap.js> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | var lat=" | ||
- | var lng=" | ||
- | simpleMap(lat, | ||
- | } | ||
- | function simpleMap(latitude, | ||
- | { | ||
- | var packageName = " | ||
- | var className = null; | ||
- | var action = " | ||
- | var uri = " | ||
- | if(app.IsAppInstalled( packageName )) | ||
- | app.SendIntent( packageName, | ||
- | else { | ||
- | app.Alert(" | ||
- | app.OpenUrl(" | ||
- | } | ||
- | } | ||
- | </ |