Getting wrong lat/lang after transforming from "EPSG:900913" projection to "EPSG:4326

المشرف العام

Administrator
طاقم الإدارة
Getting wrong lat/lang after transforming from "EPSG:900913" projection to "EPSG:4326

In OpenLayer3 Map I'm getting lat/lang from nominatim and the map is in "EPSG:900913" projection and then transforming it to "EPSG:4326" projection .

if lat = 12.9791198 and lang = 77.5912997 then i am transforming like this,

var point = new ol.geom.Point([lan,lat]);point.transform("EPSG:900913","EPSG:4326");After transformation lat/lang should be [8643375.747091185,1460888.081802196] but i am getting [8637423.97259228,-13864431.524951909].



أكثر...
 
أعلى