[MOD-2549] Android: Update Example in Ti.Map
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-01-26T14:35:18.000+0000 |
Affected Version/s | Release 8.3.0 |
Fix Version/s | n/a |
Components | Map |
Labels | android, example, map |
Reporter | Samir Mohammed |
Assignee | Samir Mohammed |
Created | 2019-10-10T10:47:39.000+0000 |
Updated | 2021-01-26T14:35:18.000+0000 |
Description
The suggestion in the Make sure to add the suggestion to the
app.js
for the android example is now incorrect and causes maps to stay black on devices and simulators. Also with the example text is not visible due to colour clashes with the background and the initial size of the text.
*Test Steps:*
Download the ti.map module from https://github.com/appcelerator-modules/ti.map and add it to a new titanium application
Copy the example from https://github.com/appcelerator-modules/ti.map/tree/master/android/example and it to the titanium application
Make sure to add the suggestion to the tiapp.xml
mentioned in app.js
Add a google maps API key to the tiapp.xml
Example of adding a google maps API key:
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<uses-library android:name="com.google.android.maps"/>
<supports-screens android:anyDensity="true"/>
<application>
<meta-data
android:name="com.google.android.maps.v2.API_KEY" android:value="INSERT_KEY_HERE"/>
</application>
</manifest>
</android>
PR: https://github.com/appcelerator-modules/ti.map/pull/280
[~smohammed], does this PR fix [MOD-2548] as well?
[~jquick] The PR was specifically to make text and the map visible, multi maps still caused the application to crash ([MOD-2548]).
Closing ticket as it has been merged,