Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2549] Android: Update Example in Ti.Map

GitHub Issuen/a
Resolution Date2021-01-26T14:35:18.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sn/a
Labelsandroid, example, map
ReporterSamir Mohammed
AssigneeSamir Mohammed


The suggestion in 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">
            <uses-library android:name="com.google.android.maps"/>
            <supports-screens android:anyDensity="true"/>
                    android:name="com.google.android.maps.v2.API_KEY" android:value="INSERT_KEY_HERE"/>

Run the application

*Actual result* Text is not visible and when clicking through the rows to get to a map, the map is not visible and black. *Expected result* Text should be visible and map should be visible


  1. Samir Mohammed 2019-10-10

    PR: https://github.com/appcelerator-modules/ti.map/pull/280
  2. Joshua Quick 2020-03-18

    [~smohammed], does this PR fix [MOD-2548] as well?
  3. Samir Mohammed 2020-03-18

    [~jquick] The PR was specifically to make text and the map visible, multi maps still caused the application to crash ([MOD-2548]).
  4. Samir Mohammed 2021-01-26

    Closing ticket as it has been merged,

JSON Source