Re: [mapguide-users] Add layer dinamically from search results

2013-03-04 Thread Mauricio Villablanca
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. _

Re: [mapguide-users] Add layer dinamically from search results

2013-02-27 Thread yof85
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

Re: [mapguide-users] Add layer dinamically from search results

2013-02-26 Thread Mauricio Villablanca
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

Re: [mapguide-users] Add layer dinamically from search results

2013-02-20 Thread yof85
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

Re: [mapguide-users] Add layer dinamically from search results

2013-02-19 Thread Jackie Ng
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

Re: [mapguide-users] Add layer dinamically from search results

2013-02-19 Thread yof85
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

Re: [mapguide-users] Add layer dinamically from search results

2013-02-18 Thread yof85
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

[mapguide-users] Add layer dinamically from search results

2013-02-12 Thread yof85
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