Thanks for the information. At least I know now it cannot be done from the
server directly. I have implemented and tested a mechanism which feeds back
a call to the client to perform the required action on the client side.
--
View this message in context:
http://www.nabble.com/Zooming---Moving-t
Hi Carl,
you can use the WebTier API to move and zoom to a special extent. That is
the same the AjaxViewer does. You have to do a server side web request like
you can see in the code below:
string url = WebDomain +
"/mapguide/mapagent/mapagent.fcgi?OPERATION=GETVISIBLEMAPEXTENT&VERSION=1.0.
the viewer API ZoomToView() can be used to achieve your needs.
Carl Jokl wrote:
>
> I wanted to ask about the process which you have to go through in order to
> use the MapGuide server side API to move the map position and zoom.
>
> The simple functionality seems to exist on the client side
The runtime map does not contain any position information.
The position and scale is only maintained on the client.
Each request for a map image contains the center coordinates and a scale.
Given this, there cannot exist a server side API for doing this.
The runtime map is not in Xml format, but
I wanted to ask about the process which you have to go through in order to
use the MapGuide server side API to move the map position and zoom.
The simple functionality seems to exist on the client side via the
JavaScript libraries to move the map to a given x, y, position via just a
just a functi