Changing longitude,latitude to latitude,longitude in OpenLayers 3?

المشرف العام

Administrator
طاقم الإدارة
Openlayers is representing the coordenates as longitude,latitude.

Can I change the default format longitude,latitude to latitude,longitude?

By example, this will not work, because I have this array as [lat, lng] and LineString is taking it as [lng,lat]:

a = [ [-21.929054, 64.127985], [-21.912918, 64.134726] ];var lineString = new ol.geom.LineString(a);

أكثر...
 
أعلى