"I want to click the map to fetch the coordinates regardless of layers and
features."
So you need the map's coordinate system?
Here's how to do it in PHP:
MgInitializeWebTier ($configFilePath);
$sessionId = $_POST["SESSION"];
$mapName = $_POST["MAPNAME"];
$userInfo = new MgUserInformation($sessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);
$featureService =
$siteConnection->CreateService(MgServiceType::FeatureService);
$map = new MgMap();
$map->Open($resourceService, $mapName); //map is in the viewer
$srs = $map->GetMapSRS();
See
http://www.osgeo.org/files/mapguide/docs/webapi/d5/d39/class_mg_map_base_61688b077eed7bac71679996524e9a1e.htm
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Passing-coordinates-with-invoke-url-tp5701691p5736063.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users