Hi,
I am triying to get coordinates in WGS84 mode using javascript. Is there any API functions used by JavaScript for this?
var tgMap = null;
var showScreenPosition = function(e) {
var lonlat = this.getLonLatFromViewPortPx(e.xy);
var result = '';
result += 'screenX = ' + e.xy.x + ',';
result += 'screenY = ' + e.xy.y + ',';
result += 'lon = ' + lonlat.lon + ',';
result += 'lat = ' + lonlat.lat;
alert(result);
}
var OnMapCreated = function(map) {
tgMap = map;
tgMap.events.register('mouseover', tgMap, showScreenPosition);
}
this function gives me the result such this : 3192096.0102896634 5035699.2570279529
but I want it as :28.6750863442015 41.1581665281288
Thanks,
Ayhan