[OpenLayers-Users] setCenter for polylines and polygons
Gery .
gamejihou at hotmail.com
Tue Feb 19 08:59:53 PST 2013
Hello folks,
I'm using this line to center my points in the map screen:
var centerPoint = new OpenLayers.LonLat(feature.geometry.x, feature.geometry.y);
map.setCenter(centerPoint);
what should I use to center polylines and polygons?
thanks in advance,
Regards,
Gery
__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130219/1831b478/attachment.html>
More information about the Users
mailing list