This is a migrated thread and some comments may be shown as answers.

A non understandable point when try to get coordinates of a place

1 Answer 28 Views
Map
This is a migrated thread and some comments may be shown as answers.
ziyahan
Top achievements
Rank 1
ziyahan asked on 12 Feb 2015, 08:23 AM
As said in documentation, lat and long are declared in order such LAT, LNG. However, in the clickevent, it gets in order reverse when I call it e.location or e.location.toString()


1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 Feb 2015, 09:20 AM
Hi,

The Location.toString() method indeed prints out the coordinates in longitude, latitude order.
It's constructor and toArray method use the latitude, longitude ordering.

This is indeed inconsistent. We'll correct the toString method to behave as the rest.
The changes will take effect in the next official release, as it constitutes a breaking change, albeit a small one.

I've updated our Telerik points as a token of gratitude for your involvement.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Map
Asked by
ziyahan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or