Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sencha Touch - Map.Geo = null

I am trying to follow this simple tutorial on Sencha Touch http://dev.sencha.com/deploy/touch/getting-started.html

I keep getting the JavaScript error: Uncaught TypeError: Cannot call method 'on' of null

This relates to the Map.geo property which is not getting set correctly. I am using the eact same code as on the link. I have tried putting on another box, in case it was a firewall issue, but get the same error.

like image 500
Adrian Westlake Avatar asked Feb 22 '11 12:02

Adrian Westlake


1 Answers

In your Application JavaScript File, replace getLocation:true with useCurrentLocation:true.

like image 76
Karl Laurentius Roos Avatar answered Oct 14 '22 13:10

Karl Laurentius Roos