Cannot see Map with Route
I follow this link to check the [Map with Route] (http://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/map_view2.js).
But when I run this application in iPhone Simulator as well as in iPhone, I get this error message:
Result of expression 'mapview.addRoute' [underfined] is not a function at map_viewe2.js (line 4)
What's the problems? My Titanium SDK i'm using is 1.2.1, and iPhone SDK is 3.1. Does this version of Titanium not support Route?
1 Answer
-
Make sure you're using the latest Titanium 1.4.0 SDK (remember that the SDK is different from the Titanium Developer app you use; the SDK is set on the "Edit" tab) and you may also need to be using the iOS 4.1 SDK.
I had the same error, and when I upgraded to the 1.4.0 SDK and iOS 4.1, it worked.