[mapguide-users] Select and zoom to feature in Mapguide+Fusion

Chris Claydon chris.claydon at autodesk.com
Fri Apr 24 12:55:02 EDT 2009


The API for the AJAX Viewer is not the same as that for Fusion. I believe some people have had success using the MapGuideViewerApi.js file provided as part of the Fusion framework to provide near-compatibility. It might be valuable to ask on this list (or on the fusion mailing list) how others have integrated this file.

Chris.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Albina Penitente
Sent: Friday, April 24, 2009 5:49 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Select and zoom to feature in Mapguide+Fusion

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 

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list