The client doesn't need the XML. You need to parse the layer definition on
the server.
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Add-layer-dinamically-from-search-results-tp5033775p5038432.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_
Hello, thanks for the response, I'm not quite sure if I understood, I'm
pretty new with the API, is this the XML I have to generate?
BgA=
6gA=
I got this XML f
An approach to this is to create a session layer. Basically get the layer
definition of your data source then add a filter to it, create a layer with
it and add it to the session repository.
In PHP
//get defintiion
$layer = $layers->GetItem($layerName);
$layerDefinition = $layer->GetLayerDefinitio
I was not trying just to do a mashup of code without understand what's going
on, let's call this a language-barrier issue (my first language isn't
english), I'll try now to do my best to explain what I wanted to say.
By mentioning this:
"But I get this error message: 'ReadFeature' doesn't exist in
If you copy/paste source code from a library, don't just pluck the file from
that library, drop it into your code and assume it will just work.
In this case, ReadFeature() is an extension method defined by the library
that you obviously haven't copied in as well.
http://code.google.com/p/mapguide
So far I think this is the main part of buffer.aspx that I need to modify
MgFeatureQueryOptions query = new MgFeatureQueryOptions();
query.SetFilter(filter);
MgResourceIdentifier featureSource = new
MgResourceIdentifier(selLayer.GetFeatureSourceId());
MgFeatureReader features = featureSrvc.Selec
I have to assume there's no way to do this
The buffer tool gives me a similar solution, but I need to locate the points
selected and added as a layer previously
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Add-layer-dinamically-from-search-results-tp5033775p5034952
Hello
Is there a way to add the search results (from search.aspx) as a new layer
in mapguide? my idea is to add a new button "Add results as layer" from the
search results and then a new layer is added in the Layers section, with the
points/areas
thanks in advance
--
View this message in conte