Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1130] "ui/map" sample code error for mobileweb

GitHub Issuen/a
Resolution Date2014-09-12T17:18:49.000+0000
Affected Version/sAlloy 1.5.0
Fix Version/sAlloy 1.5.0
ComponentsSamples & Templates
Labelsqe-3.4.0, qe-noTestNeeded, regression
ReporterFederico Casali
AssigneeTim Poulsen


Problem description

Ui/Map module sample is not runnable on MobileWeb for a typo in the code

Steps to reproduce

1. Import ui/map sample 2. Run in MobileWeb Result: 'Uncaught reference - ti is not defined at /index.html' The code for MobileWeb is
<View id="map" ns="ti.map" method="createView" platform="mobileweb">
"ti.map" should be changed into "Ti.Map".


  1. Tim Poulsen 2014-09-08

    PRs: (master) https://github.com/appcelerator/alloy/pull/548 (1_5_X) https://github.com/appcelerator/alloy/pull/549 Functional test: 1. Create a new Alloy project 2. From your local fork of the Alloy repo (or from a downloaded zip file), copy the contents of samples/mapping into your project's app folder, with the exception of alloy.jmk and androidManifest.template.xml (which are used by Studio and if building for Android) 3. Build the project for mobileweb ( ti build -p mobileweb ) 4. Copy the contents of build/mobileweb to ~/Sites (you may have to create this folder) 4. If necessary, start Apache ( sudo apachectl start ), then in your browser, load http://localhost/~yourUserName/ The map should render and no error should be displayed
  2. Ingo Muschenetz 2014-09-09

    Done. Somehow forgot. Thanks!
  3. Federico Casali 2014-09-12

    Sample code included in 'test/apps/ui/map' should be changed too. Currently is:
       <View id="map" ns="ti.map" method="createView" platform="mobileweb">
  4. Tim Poulsen 2014-09-12

    PRs: 1_5_X: https://github.com/appcelerator/alloy/pull/557 master: https://github.com/appcelerator/alloy/pull/558
  5. Ingo Muschenetz 2014-09-12

    Re-resolving after merging PRs.
  6. Federico Casali 2014-09-14

    Sample code updated as expected. Closing.

JSON Source