[mapguide-users] Re: Start with a map coordinates passed
by parameters in the URL
Kenneth Skovhede, GEOGRAF A/S
ks at geograf.dk
Thu Jan 21 03:08:56 EST 2010
There is a .Net MaestroAPI example of the same here:
http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/CustomizedZoomWithWebLayout
Regards, Kenneth Skovhede, GEOGRAF A/S
On 20-01-2010 11:59, Jackie Ng wrote:
> What you could do is on startup, to read the content of your WebLayout,
> modify it's initial view section to contain your coordinates, write the
> modified content to your session repository and point your AJAX viewer to
> load the session-based WebLayout.
>
> There's a PHP example here:
> http://trac.osgeo.org/mapguide/wiki/CodeSamples/PHP/InitialMapView
>
> Note that with this approach, every time you reset your view in the AJAX
> viewer, it will reset to your custom initial position and scale.
>
> - Jackie
>
More information about the mapguide-users
mailing list