[英]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 我试图在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 我一直收到JavaScript错误:Uncaught TypeError:无法调用null的方法'on'
This relates to the Map.geo property which is not getting set correctly. 这与Map.geo属性有关,该属性未正确设置。 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
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.