[mapguide-users] Accessing layer's properties to display with mapguide API

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Jul 29 17:44:09 EDT 2008


The mapping in the layer determines what properties are visible for the 
selection.
To get all column names for the FeatureSource, you have to perform a 
DescribeSchema call.

Regards, Kenneth Skovhede, GEOGRAF A/S



web skrev:
> Hi all,
> How retrieve layer's properties to display with mapguide API? I've 
> search the in MgLayer methods and the xml associated to the layer as 
> below :
>
> $byteReader = 
> $resourceService->GetResourceContent($layer->GetLayerDefinition());
>     $xmldoc = DOMDocument::loadXML(ByteReaderToString($byteReader));
>
> I can see mapping but no if information about if the property should 
> appear in the selection?!?
>
> Do someone know how to do that via php server API?
> Thanks in advance,
> Rémy
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080729/872e1dd4/attachment.html


More information about the mapguide-users mailing list