More work on OL3.
This commit is contained in:
parent
5acecbaf6f
commit
8639ab3837
4 changed files with 152 additions and 154 deletions
|
|
@ -166,7 +166,7 @@ function format_distance_long(dist) {
|
|||
return dist_text;
|
||||
}
|
||||
|
||||
// p as a LatLng
|
||||
// p is a [lon, lat] coordinate
|
||||
function format_latlng(p) {
|
||||
return p.lat().toFixed(3) + DEGREES + "," + NBSP + p.lng().toFixed(3) + DEGREES;
|
||||
return p[1].toFixed(3) + DEGREES + "," + NBSP + p[0].toFixed(3) + DEGREES;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue