Improved convertLatLng
Here is the first release with breaking changes. The changes are primarily internal and it is unlikely you'll encounter breaking changes.
convertLatLng
now checks the entire prototype chain ('lat' in obj
) rather than checking if an object has its own property (obj.hasOwnProperty('lat')
). This allowsconvertLatLng
to work with JavascriptCoordinates
returned by the Geolocation API.convertLatLng
will throw aTypeError
if it cannot convert an object. Previously it returnedundefined
.convertLatLng
previously took a second parameter that could override the class constructor used. This behaviour was deprecated and is now removed.LatLng
previously stored the latitude and longitude as symbols. They are now stored aslatitude
andlongitude
properties (replacing the getters).