Jean, Jean Pommier (IGE) wrote: > I don't need any conversion, in my case, since i'm working with EPSG > 4326. What i still don't understand, is how to apply map.zoomToExtent > ? Can i do it without writing javascript code. Is there a tag, a > widget that does it ? Or shall i write a piece of javascript code ? > And if yes, where ? Any idea ? Any pist ? Just to start with ?
It is much simpler than you might imagine. Just add a bbox parameter to your url: http://yourhost/mapbuilder/yourapp/index.html?bbox=0,0,50,50 If you do not want to use url parameters for that, you can do something similar e.g. in a script block in the head of your html page: function initBBox() { config.objects.mainMap.setBoundingBox([0,0,50,50]); } config.objects.mainMap.addListener("loadModel", initBBox); Regards, Andreas. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
