{ "id": "62786", "key": "TIMOB-2154", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11230", "name": "Release 1.5.0 M05", "archived": true, "released": true, "releaseDate": "2010-12-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:15.000+0000", "created": "2011-04-15T03:12:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "defect", "mapview" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:15.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

1.5.0.70ce98 g2 running 2.2, G1 running 1.6, sim 2.2.

\n

1.BaseUI>Views>MapView
\n2.menu>tap sv (or ATL, or change map types)

\n

results: Runtime error (setLocation)

\n

E/KrollCallback(15753): (kroll$4) [108,39902] ECMA Error\nevaluating source, invocation: [callMethod\nOptionMenu.MenuItem.OptionMenu.MenuItem:event:click null], message:\nTypeError: Cannot find function setLocation in object\n[Ti.Map.View]. (app://examples/map_view.js#138)
\nE/KrollCallback(15753): org.mozilla.javascript.EcmaError:\nTypeError: Cannot find function setLocation in object\n[Ti.Map.View]. (app://examples/map_view.js#138)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
\nE/KrollCallback(15753): at\nscript(app://examples/map_view.js:138)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollCallback(15753): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
\nE/KrollCallback(15753): at\norg.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:97)
\nE/KrollCallback(15753): at\nandroid.os.Handler.handleCallback(Handler.java:587)
\nE/KrollCallback(15753): at\nandroid.os.Handler.dispatchMessage(Handler.java:92)
\nE/KrollCallback(15753): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollCallback(15753): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)

{html}", "attachment": [], "flagged": false, "summary": "Android: Runtime errors when showing co-ordinates on map", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127670", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I don't believe that Android supports setLocation yet. Users\nneeding to workaround this issue can do so by changing lines\nlike:

\n
\nmapview.setLocation(regionSV);\n
\nto:
\n
\nmapview.region = regionSV;\n
\n

Admittedly this won't provide a nice animated transition between\nthe two locations.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:12.000+0000", "updated": "2011-04-15T03:12:12.000+0000" }, { "id": "127671", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've just realised that I missed out what regionSV contains,\nbecause I was referring to the KS example mentioned in the ticket\ndescription.

\n

Hence,

\n
\nvar regionSV = {latitude:37.337681,longitude:-122.038193,animate:true,latitudeDelta:0.04, longitudeDelta:0.04};\n
{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:12.000+0000", "updated": "2011-04-15T03:12:12.000+0000" }, { "id": "127672", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This should have stayed in 1.5.0

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:12.000+0000", "updated": "2011-04-15T03:12:12.000+0000" }, { "id": "127673", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [389d613bc68243ca2b9ea93831160c8d8bc2b58f])\n[#2154 state:fixed-in-qa] Support setMapType and\nsetLocation. They weren't in our documentation, so add them there\ntoo \nhttps://github.com/appcelerator/titanium_mobile/commit/389d613bc682...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:12:13.000+0000", "updated": "2011-04-15T03:12:13.000+0000" }, { "id": "127674", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

G1 (1.6) G2 (2.2) RC2

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:13.000+0000", "updated": "2011-04-15T03:12:13.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }