Titanium JIRA Archive
Appcelerator Modules (MOD)

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

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-01-26T14:35:18.000+0000
Affected Version/sRelease 8.3.0
Fix Version/sn/a
ComponentsMap
Labelsandroid, example, map
ReporterSamir Mohammed
AssigneeSamir Mohammed
Created2019-10-10T10:47:39.000+0000
Updated2021-01-26T14:35:18.000+0000

Description

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">
        <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>

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

Comments

  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