I'm struggling to get my old PHP scripts that worked in 2.5 to work in 3.1...hoping someone can help out. I've had a hard time finding documentation that's up to date. Here's a snippet:
MgInitializeWebTier ($configFilePath); $userInfo = new MgUserInformation($mgSessionId); $siteConnection = new MgSiteConnection(); $siteConnection->Open($userInfo); $resourceService = $siteConnection->CreateService(0); $featureService = $siteConnection->CreateService(2); $queryOptions = new MgFeatureQueryOptions(); $map = new MgMap(); $map->Open($resourceService, $mapName); // Create the selection object by retrieving the current // selection from the map. $selection = new MgSelection($map); $selection->Open($resourceService, $mapName); $layers = $selection->GetLayers(); Right now, it's giving me an error at new MgMap() saying that it's the wrong number of parameters. I can't find any docs that tell me what's changed, so I'm pretty stuck. Any suggestions? [GEMTEC]<https://www.gemtec.ca/> Andrew DeMerchant Fredericton, NB tel: 506.453.1025 x163 / toll-free: 1.877.243.6832 mobile: 506.470.2007 / fax: 506.453.9470
_______________________________________________ mapguide-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapguide-users
