Solved.
selectionBox = new OpenLayers.Feature.Vector(bounds.toGeometry());
vectors.addFeatures( [ selectionBox ]);
--- Mer 14/7/10, michele pierri <[email protected]> ha scritto:
Da: michele pierri <[email protected]>
Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate
A: "BMcBride" <[email protected]>, [email protected]
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 <[email protected]> ha scritto:
Da: BMcBride <[email protected]>
Oggetto: Re: [OpenLayers-Users] Center map to minx miny maxx maxy coordinate
A: [email protected]
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
[email protected]
http://openlayers.org/mailman/listinfo/users
-----Segue allegato-----
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users