[mapguide-users] Layer Zooming

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue May 5 09:21:39 EDT 2009


Correct, the mapdef + weblayout are created outside lines i mentioned.

You have to call ZoomToView or similar:
http://mapguide.osgeo.org/files/mapguide/docs/viewerapi/viewerapi.html#mapframe_zoomtoview

The problem with that is that you need to calculate scale from the 
boundingbox,
search the web, and you will find examples.
Otherwise, look in the viewer .js files, and see how it works,
there is likely an function that does it for you.

If you use Fusion there are OpenLayers calls for it.

Regards, Kenneth Skovhede, GEOGRAF A/S



padmini godavarthi skrev:
> Hi Kenneth,
> Thank u very much foor ur quick response.
>
> i have seen ur code in php
>
> in this code after gettikg maxx,maxy,minx,miny waht i have to
> do????????????///
> i think i dont have necessity to create mapdefinition,web layout  all these
> thinkgs right???????????
> my code is as
> follows...............................................................
>
>
>
>   


More information about the mapguide-users mailing list