Thanks Andreas and John for your support. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andreas Hocevar Sent: 12 December 2011 14:33 To: Takako Tucker Cc: [email protected] Subject: Re: [OpenLayers-Users] Set zoomlevel depending on the fartherest pinpoints location
Hi, if your pinpoints are on a vector layer, you can do map.zoomToExtent(vectorLayer.getDataExtent()); (assuming you have a reference to your OpenLayers.Map object as map, and to your vector layer as vectorLayer) Andreas. On Mon, Dec 12, 2011 at 3:07 PM, Takako Tucker <[email protected]> wrote: > Hi. Another question, if you don't mind. > > Is it possible to set a zoom level based on fartherest pinpoints on > each side of the map? > Has anyone done this before? > > Takako > > > > http://www.bbc.co.uk > This e-mail (and any attachments) is confidential and may contain > personal views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
