[mapguide-users] Select and zoom to feature in Mapguide+Fusion
alba
a.penitente at gepaspa.com
Fri Apr 24 06:36:09 EDT 2009
hi Chris
thank you very much for your answer
it's very good for mg 2.0.2 but not for mg 2.0.1
I tested in both realizes
the selectionXml is valid too.
Sorry if you ask even more questions, but I need help
1.
'map.setSelection(sel, true)' is not valid for multi selections! In this case, how I can do?
2.
I think that the file C:\Programmi\MapGuideOpenSource2.0\WebServerExtensions\Help\viewerapi.html
is not update for mg 2.0.2, because the instruction 'setSelection' does not exist
where I can download a new viewer api?
I must resolve this function
function submitRequest(pageUrl)
{
xmlSel = parent.parent.mapFrame.GetSelectionXML();
if(xmlSel=='') alert("Selezionare Area Incendio");
else{
mapScale = parent.parent.mapFrame.GetScale();
mapHeight = 600;
mapWidth = 600;
mapCenter = parent.parent.mapFrame.GetCenter();
params = new Array("SESSION", parent.parent.mapFrame.GetSessionId(),
"MAPNAME", parent.parent.mapFrame.GetMapName(),
"SELECTION", xmlSel,
"SCALE", mapScale,
"HEIGHT", mapHeight,
"WIDTH", mapWidth,
"CENTERX", mapCenter.X,
"CENTERY", mapCenter.Y
);
parent.parent.formFrame.Submit(pageUrl, params, "_blank");
}// fine else
}
3.
I would use in mapguide 2.0.2 the same templates of mg 2.0.1 es: aqua, marron, ecc..
How can I do?
bye bye Alba
--
View this message in context: http://n2.nabble.com/Changing-current-selection-colour-tp1805368p2691735.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090424/8cce01ab/attachment.html
More information about the mapguide-users
mailing list