[OpenLayers-Users] Zoom to feature after mapload

2010-01-27 Thread Herman Badenhorst
Hi group. I need to implement the functionality where the map automatically zoom's to a feature after the map is loaded. Thus, my url will look something like this: http://host/MapViewer.php?SelectedUnit=123 The request parameter is the value of the 'unit' attribute in my layer. Is there a way

Re: [OpenLayers-Users] Zoom to feature after mapload

2010-01-27 Thread Marco Scheuble
Hi Herman, maybe you're looking for s.th. like this: get the bounds of a feature: var bounds = features[i].geometry.getBounds(); calculate zoom and zoom to the feature:: var desiredZoom = map.getZoomForExtent(bounds); map.setCenter(bounds.getCenterLonLat(), desiredZoom); for more information

[OpenLayers-Users] zoom to feature

2010-01-26 Thread Marco Scheuble
Hi list, I wanted to know if there is the posibility of zooming to a feature or multiple features? if not, maybe someone can tell me, how to get a BoundingBox including selected features? cheers Marco ___ Users mailing list Users@openlayers.org

Re: [OpenLayers-Users] zoom to feature

2010-01-26 Thread bartvde
Hi, see: http://trac.openlayers.org/wiki/Addins/ZoomToFeatures Best regards, Bart Hi list, I wanted to know if there is the posibility of zooming to a feature or multiple features? if not, maybe someone can tell me, how to get a BoundingBox including selected features? cheers Marco

Re: [OpenLayers-Users] zoom to feature

2010-01-26 Thread Marco Scheuble
Hi Bart, thank you, it works great! cheers, marco Am 26.01.2010 11:07, schrieb bart...@osgis.nl: Hi, see: http://trac.openlayers.org/wiki/Addins/ZoomToFeatures Best regards, Bart Hi list, I wanted to know if there is the posibility of zooming to a feature or multiple features?

[OpenLayers-Users] Zoom-based feature styling

2009-12-29 Thread Mak Kolybabi
I expect that there's an easy way to do this, but it so far eludes me. I have an OpenLayers.Layer.Vector object called icons. Each feature in this layer has two attributes that I need to worry about: type and zoom. There are fifty different types, and five different zooms, so far. I already have

Re: [OpenLayers-Users] Zoom-based feature styling

2009-12-29 Thread Arnd Wippermann
-boun...@openlayers.org] Im Auftrag von Mak Kolybabi Gesendet: Dienstag, 29. Dezember 2009 17:19 An: users@openlayers.org Betreff: [OpenLayers-Users] Zoom-based feature styling I expect that there's an easy way to do this, but it so far eludes me. I have an OpenLayers.Layer.Vector object called icons

Re: [OpenLayers-Users] Zoom to feature and highlight it

2009-08-20 Thread kennyken
I'm going to clarify my problem a little bit. What I'm trying to do is take a parameter from the user (parameter is used to uniquely identify a property on the map), find the location of that property, and center the map on it. I figured the easiest way to do this would be to give each property

Re: [OpenLayers-Users] Zoom to feature and highlight it

2009-08-20 Thread kennyken
I'm going to clarify my problem a little bit. What I'm trying to do is take a parameter from the user (parameter is used to uniquely identify a property on the map), find the location of that property, and center the map on it. I figured the easiest way to do this would be to give each property

[OpenLayers-Users] Zoom to feature and highlight it

2009-08-19 Thread kennyken
Here is what I’m trying to do. I have google maps as my base layer. Then I have a polygon layer on top of that. What I’m trying to do is link to a particular polygon and highlight it via a hyperlink somewhere on my website. For example I would have a link similar to

Re: [OpenLayers-Users] Zoom to feature and highlight it

2009-08-19 Thread Eric Lemoine
On Wednesday, August 19, 2009, kennyken asselti...@hotmail.com wrote: Here is what I’m trying to do. I have google maps as my base layer.  Then I have a polygon layer on top of that. What I’m trying to do is link to a particular polygon and highlight it via a hyperlink somewhere on my

Re: [OpenLayers-Users] Zoom to feature and highlight it

2009-08-19 Thread Lee Meilleur
Of kennyken Sent: Wednesday, August 19, 2009 8:18 AM To: users@openlayers.org Subject: [OpenLayers-Users] Zoom to feature and highlight it Here is what I'm trying to do. I have google maps as my base layer. Then I have a polygon layer on top of that. What I'm trying to do is link to a particular