[OpenLayers-Users] Center map to minx miny maxx maxy coordinate

michele pierri pierm4ci at yahoo.it
Wed Jul 14 16:50:32 EDT 2010


Solved.
selectionBox = new OpenLayers.Feature.Vector(bounds.toGeometry());						vectors.addFeatures( [ selectionBox ]);
--- Mer 14/7/10, michele pierri <pierm4ci at yahoo.it> ha scritto:

Da: michele pierri <pierm4ci at yahoo.it>
Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate
A: "BMcBride" <bmcbride at chacompanies.com>, users at openlayers.org
Data: Mercoledì 14 luglio 2010, 22:40

Ok thanks, I have used:map.zoomToExtent(new OpenLayers.Bounds(parseFloat(coord[0]),parseFloat(coord[1]),parseFloat(coord[2]),parseFloat(coord[3])  ));					And if I would draw a boundin box with these coordinate?
How can I do?

Sorry but I am not expert.
Thanks again.
--- Mer 14/7/10, BMcBride <bmcbride at chacompanies.com> ha scritto:

Da: BMcBride <bmcbride at chacompanies.com>
Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate
A: users at openlayers.org
Data: Mercoledì 14 luglio 2010, 22:24


Try map.zoomToExtent


http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.zoomToExtentBryan R. McBride, GISP

bryanmcbride.com


View this message in context: Re: Center map to minx miny maxx maxy coordinate

Sent from the OpenLayers Users mailing list archive at Nabble.com.


-----Segue allegato-----

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users





      
-----Segue allegato-----

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100714/587e8429/attachment.html


More information about the Users mailing list