[mapguide-users] prob with GetSelectionXml()

Zac Spitzer zac.spitzer at gmail.com
Thu Jun 18 03:57:39 EDT 2009


sounds like your not closing off feature readers...

z

On Thu, Jun 18, 2009 at 5:56 PM, saloua
wakrim<wakrimsaloua.wakrim at gmail.com> wrote:
> hi kenneth, i hope that you are fine, please i nned your help on one subject
> if you have some idea, i finish my project with mùapGuide but here when i
> excute global code some times it runs correctlly and gives correct response,
> and soùe times it gives me strnge errors relatives to mapguide with saying
> that the features are busy or that i can't establish connection to
> mapguide!!! and if i restart mapguide server, and run it works, i know that
> prob may be caused by mapguide server as i use open source version but i
> don't know how can i correct it? please if you have some ideas about this
> probs help me, thanks a lot in advance.
>
> 2009/6/8 Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk>
>>
>> What version of MG are you using?
>> I have not used the AJAX viewer for some time, so I can't offer you any
>> advice.
>> If you get no responses, try posing a fresh question, as the current
>> subject will not
>> attract attention from the people likely to have the answer to this.
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>> saloua wakrim skrev:
>>
>> hi kenneth! at first thanks a lot for your help, i've read the
>> documentation you gove me and tried to apply it for changing selection color
>> : format of my "ajaxmappane.templ" (or function wich concerning me) is
>>
>> function RequestMapImage(reqId)
>> {
>>     url = webAgent +
>> "?OPERATION=GETDYNAMICMAPOVERLAYIMAGE&FORMAT=PNG&VERSION=1.0.0&SESSION=" +
>> sessionId + "&MAPNAME=" + encodeComponent(mapName) + "&SEQ=" + Math.random()
>>     document.getElementById("overlay").innerHTML =
>>             '<img class="mapImage" name="' + reqId + '" id="mapImage"
>> src="' + url + '" width=' + mapDevW + ' height=' + mapDevH + ' border=0
>> vspace=0 hspace=0 style="visibility: hidden; width: ' + mapDevW + 'px;
>> height: ' + mapDevH + 'px;" onload="return
>> OnMapOverlayImageLoaded(event)">';
>> }
>>
>> i've tried to modify it by adding:
>> .....Math.random()+ "&BEHAVIOR=7&SELECTIONCOLOR=FF5300FF"; As
>> documentation says, and when i try after to get my map on ajaxviewer it's
>> not loaded the ajax viewer is loaded but page not contains my map!!!! i've
>> changed version too (as documentation you sent me)
>>
>> VERSION=1.0.0 to VERSION=2.0.0 but it doesn't give good result, if you can
>> explain me why?? thanks in advance
>>
>>
>>
>>
>>
>>
>>
>>
>> 2009/6/4 Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk>
>>>
>>> No need to double or triple post.
>>>
>>> You answer can be found here:
>>> http://sandbox.mapguide.com/index.php/Change_Selection_Color_Setting
>>> or here:
>>>
>>> http://www.jasonbirch.com/nodes/2008/12/02/213/changing-selection-colour-in-mapguide-ajax-viewer/
>>>
>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>
>>>
>>> saloua wakrim skrev:
>>>
>>> hi kenneth ! when we select object on map or (selection) mapguide marks
>>> it with blue color (with some transparency) who knows the code of this
>>> color? if we want use it for example as foreground to draw layer what is the
>>> code wich allow that, thanks for all in advance
>>>
>>> 2009/5/28 Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk>
>>>>
>>>> Its the runtime layer's ID, which is a guid string, and changes for each
>>>> invocation of the map.
>>>> (eg, you can't save it and use it in another session).
>>>>
>>>> Selection xml looks like this:
>>>>
>>>> <Layer id="layer guid">
>>>>  <Class id="feature class">
>>>>    <ID>base64 encoded primary key value</ID>
>>>>  </Class>
>>>> </Layer>
>>>>
>>>> You can have multiple <Layer> tags, multiple <Class> tags, and multiple
>>>> <ID> tags.
>>>>
>>>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>>>
>>>>
>>>>
>>>> wakrimsaloua.wakrim at gmail.com skrev:
>>>>>
>>>>> hi all! did you know what does" id" in <layer id=255.....> returned by
>>>>> selection xml mean? cause when i got the XmlSelection from map and i use it
>>>>> for getting layers it contains i've error wich say that layers is nothing
>>>>> but the selection is nt i've verifyed it the selection i got from map is not
>>>>> empty but the layers are nothing, so i think that can be caused by the "id"
>>>>> in <layer id=255.....> returned by the selection if that mean the session
>>>>> for example cause me when i create layer i do it with
>>>>> "library://......mapdefinition" and not "Session//....mapdefinition" so i
>>>>> think that if the id on <layer id=255.....> means the session used by user i
>>>>> think that layer contained on selection won't be known, but i'm not sure
>>>>> please if you have some idea tell it me, thanks a lot on advance.
>>>>> _______________________________________________
>>>>> mapguide-users mailing list
>>>>> mapguide-users at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>
>>>>
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>> ________________________________
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>>
>> ________________________________
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>



-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-users mailing list