简体   繁体   中英

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.

在您的应用程序JavaScript文件中,将getLocation:true替换为useCurrentLocation:true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM