[ALOY-1130] "ui/map" sample code error for mobileweb
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-12T17:18:49.000+0000 |
Affected Version/s | Alloy 1.5.0 |
Fix Version/s | Alloy 1.5.0 |
Components | Samples & Templates |
Labels | qe-3.4.0, qe-noTestNeeded, regression |
Reporter | Federico Casali |
Assignee | Tim Poulsen |
Created | 2014-09-08T15:05:39.000+0000 |
Updated | 2014-11-19T22:47:37.000+0000 |
Description
Problem description
Ui/Map module sample is not runnable on MobileWeb for a typo in the codeSteps 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".
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 displayedDone. Somehow forgot. Thanks!
Sample code included in 'test/apps/ui/map' should be changed too. Currently is:
PRs: 1_5_X: https://github.com/appcelerator/alloy/pull/557 master: https://github.com/appcelerator/alloy/pull/558
Re-resolving after merging PRs.
Sample code updated as expected. Closing.