[mapguide-users] How to get selected area information in mapguide
nekad
nekadiana at gmail.com
Thu Nov 12 03:01:32 EST 2009
Thank Kenneth for the reply..
I've figured out that it is caused when InitializeWebTier and the included
file location is wrong....
now, I can get the map and layer name to the screen,
but, the problem is $_POST['SELECTION'] seems not be set
when i run isset($_POST['SELECTION'] it return false
I've already select an area in my map, but why the selection is false?
and 4 your information, i just have one layer, but it consist of separated
area
such as, I have layer name 'Indo', when it shows in web layout, there will
be a line that separated one area to another...
please, can you help me?
Kenneth Skovhede, GEOGRAF A/S wrote:
>
> You need to flush the output, otherwise output may be eaten by the
> exception.
>
> Try turning on error information in your php.ini to get the actual error
> message.
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> nekad skrev:
>> Hey guys..
>> I'm newbie in GIS world
>> I'm using Mapguide and mapguide maestro 1.0.9
>>
>> What i want is,
>> when user click a selected area, then they can right click and choose the
>> link i provided, let say "ViewData"
>>
>> when user click ViewData, then it will show a popup window which display
>> relevant information of selected area...
>>
>> But, my problem is, I don't know how to get the information..
>>
>> I have coded by following the sample,
>> $args = ($_SERVER['REQUEST_METHOD'] == 'POST') ? $_POST : $_GET;
>> $sessionId = $args['SESSION'];
>> echo $sessionId."<br>";
>> $mapName = $args['MAPNAME'];
>> echo $mapName."<br>";
>> try
>> {
>> // Initialize the Web Extensions and connect to the Server using
>> // the Web Extensions session identifier stored in PHP session
>> state.
>>
>> MgInitializeWebTier ($webconfigFilePath);
>>
>> $userInfo = new MgUserInformation($sessionId);
>> //$userInfo = new MgUserInformation("Administrator", "admin");
>> echo "USER";
>> $siteConnection = new MgSiteConnection();echo "CON";
>> $siteConnection->Open($userInfo);echo "open";
>> $resourceService =
>> $siteConnection->CreateService(MgServiceType::ResourceService); echo
>> "resource";
>>
>> when i run it, popwindow will display echo till "CON", but "resource"
>> will
>> not shown...
>> what is the problem?
>> somebody can help me the simple way to do my needs?
>>
>> thx
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context: http://n2.nabble.com/How-to-get-selected-area-information-in-mapguide-tp3990812p3991254.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list