Hi,

On Dec 11, 2007 8:28 AM, D25002011 <[EMAIL PROTECTED]> wrote:
> 1: Just running Mapbuilder with MapPaneOL, and wondering how to implent the
> animated zoom into Mapbuilder. I know there is a script to add this to
> OpenLayers, but Mapbuilder doesn't use the same files
> (http://trac.openlayers.org/attachment/ticket/442/final_animatedZooming_Core.patch).

lib/util/openlayers/OpenLayers.js is a full build of OpenLayers
(currently release 2.5). You can download any version of Openlayers >=
2.5 and patch it with any enhancements you like. Then you go into the
build directory of OpenLayers, run "build.py full", and copy the
resulting file back to lib/util/openlayers/OpenLayers.js in
Mapbuilder.

> 2: With a simple query I can search names on the database for locations. I
> can retrieve the geom value. This is posible to read it as location if I use
> AsText to decrypt it. How can I make Mapbuilder to zoom in on that location?
> Using ?bbox=?

Using the bbox url parameter is only recommended for permalinks and
the such. If you want to zoom to a location programmatically, you
would have to do something like this:

var center = new OpenLayers.LonLat(<lon>, <lat>);
config.objects.<contextModelIdHere>.map.setCenter(center, <zoomLevelHere>);

<contextModelIdHere> is usually "mainMap", at least in our examples.
If you omit the zoom level, the map will just be recentered to the new
coordinates.

You do not need to take care for Mapbuilder to update bbox and aoi
settings, this is done automatically.

Regards,
Andreas.

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to