[mapguide-users] open a new map on same view
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Wed Mar 11 17:38:42 EDT 2009
AFAIK, there are no parameters that enables a custom initial map extent.
So, you have two options:
1) Add code in the mapviewer.(aspx/php/jsp) files to handle this
2) Use a seperate pre-processing page to create a copy of the WebLayout
(or Fusion app),
set the new center, save as temp, and load the customized temp WebLayout.
Method (1) will require adjustments on each MapGuide upgrade, so I
recommend (2).
An example of this can be seen here:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout
If you are not using the MaestroAPI, you can manually modify the
WebLayout xml, using the
GetResource and SetResource API calls.
Regards, Kenneth Skovhede, GEOGRAF A/S
Matteo skrev:
> Hi all,
> I need to open a new map (MAP_B) on the same position of an another map
> (MAP_A). I can get the Center, Width and Height from MAP_A but I don't know
> what parameters I must send to ajaxviewer for open the MAP_B on a specified
> view
> Have any ideas?
>
> Regards,
> Matteo
>
More information about the mapguide-users
mailing list