google.maps.Geo codeR()在科尔多瓦2.6获得空 [英] google.maps.Geocoder() getting null in cordova 2.6

查看:92
本文介绍了google.maps.Geo codeR()在科尔多瓦2.6获得空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的PhoneGap项目地理$ C $铬。这是使用科尔多瓦1.7时,即时通讯工作正常,但是当我改变了科尔多瓦版本2.6,它返回未定义。

I'm using geocoder in my phonegap project. This is working fine in when im using cordova 1.7 but when I changed the cordova version to 2.6, it is returning undefined..

任何想法,我缺少的是什么?

Any idea what am I missing?

VAR地理code =新google.maps.Geo codeR()

推荐答案

使用 VAR地理code =新google.maps.Geo codeR();

在创建类(当然的Javascript对象只)的任何对象,使用新的实例。

When creating any object of class (of course Javascript has only objects), use new to instantiate.

这篇关于google.maps.Geo codeR()在科尔多瓦2.6获得空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆