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
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
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
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
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?
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
-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
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
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
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
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
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
12 matches
Mail list logo