Sandeep P
Sandeep P

Reputation: 4411

google.maps.Geocoder() getting null in cordova 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 geocode= new google.maps.Geocoder()

Upvotes: 0

Views: 761

Answers (1)

Ranganadh Paramkusam
Ranganadh Paramkusam

Reputation: 4358

use var geocode = new google.maps.Geocoder();

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

Upvotes: 2

Related Questions