[mapguide-users] change selection color

saloua wakrim wakrimsaloua.wakrim at gmail.com
Mon Jun 8 04:32:18 EDT 2009


hi !  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090608/76dae4ed/attachment.html


More information about the mapguide-users mailing list