Nachricht-
Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im
Auftrag von Gilberto Ramos
Gesendet: Freitag, 23. Juli 2010 15:20
An: users@openlayers.org
Betreff: [OpenLayers-Users] Zoom to dinamic WMS Layer
Hi people, how are you doing?
I'm having troubles to find
Thank you very much!! =)
Nice solution! I managed to do it this way:
function gup(name){
name = name.replace(/[\[]/,\\\[).replace(/[\]]/,\\\]);
var regexS = [\\?]+name+=([^#]*);
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results
Hi folks!
I want to know if it's possible to zoom to a point, I mean, i.e.:
setCenter(point, 2)
but having the feature ID at the URL...
This is just on the first load..! Any idea? Thanks!
-
just another web developer
--
View this message in context:
...@openlayers.org] Im
Auftrag von giraam
Gesendet: Mittwoch, 30. Juni 2010 15:15
An: users@openlayers.org
Betreff: [OpenLayers-Users] Zoom to point given feature ID by GET
Hi folks!
I want to know if it's possible to zoom to a point, I mean, i.e.:
setCenter(point, 2)
but having the feature ID
Hi folks!
I want to know if it's possible to zoom to a point, I mean, i.e.:
setCenter(point, 2) but having the feature ID at the URL...
This is just on the first load..! Any idea? Thanks!
-
just another web developer
--
View this message in context:
Hi there
With 1.000+ markers, you'll also get 1.000 DOM elements which will slow your
browser down no matter what. I would never recommend that.
But an alternative could be to only show the markers at a specific
scale/zoomlevel and then maybe an overviewmap which won't be as dynamic as
the other
Hello everyone,
I'm using the cluster strategy for improving visualization of points from a
WFS.
Now I'm trying to figure out how to zoom to the extent of a cluster when you
click on a point. Anybody has any ideas on how to create this function?
Thanks
Luca
--
View this message in context:
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?
Hi,
I'm adding a GML file in my map with the object OpenLayers.Layer.GML. I'm
trying to zoom to this layer extent at map's loading. I can do this if I
know de bounding box coordinates with a postgis query.
My PHP code :
var bounds = new OpenLayers.Bounds();
bounds.extend((new
christophe triquet wrote:
Hi,
I'm adding a GML file in my map with the object OpenLayers.Layer.GML.
I'm trying to zoom to this layer extent at map's loading. I can do
this if I know de bounding box coordinates with a postgis query.
Is it possible the get the gml extent to be able to
On Mon, Jan 18, 2010 at 01:32:24PM +0100, christophe triquet wrote:
Hi,
I'm adding a GML file in my map with the object OpenLayers.Layer.GML. I'm
trying to zoom to this layer extent at map's loading. I can do this if I
know de bounding box coordinates with a postgis query.
My PHP code :
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
Now while zooming the map, it seems a request is sent to servers, and the map
will become blank and will be waiting for the image returned. Of course we
can display a loading panel to prompt user, but it will be better to zoom
current map image roughtly to expected scale to replace the blank map.
Use transitionEffect: 'resize' as an option on the Layer.
Best regards,
Bart
On Nov 18, 2009, at 3:33 PM, carls wrote:
Now while zooming the map, it seems a request is sent to servers, and the map
will become blank and will be waiting for the image returned. Of course we
can display a
Thank you! it's great!
bartvde wrote:
Use transitionEffect: 'resize' as an option on the Layer.
Best regards,
Bart
On Nov 18, 2009, at 3:33 PM, carls wrote:
Now while zooming the map, it seems a request is sent to servers, and the
map
will become blank and will be waiting for
double check = recheck carefully.
As I stated on my first email, I am not sure if this is a problem related to
your code. If it was, you wouldn't get the points displayed in the right
position on the first load. I bet it has something to do with caching, but I
am not sure about that either.
That
Pedro Baracho wrote:
Maybe double check your projections coordinates and events on zooming.
Hello,
thanks for your answer. But what do you mean, by double check your
projections coordinates and events on zooming?
I'm sorry but I haven't much experience with openlayers.
regards
Hello,
As I already said in my subject I have the following problem. I have a
openlayers.map with a wms. When I launch my application, my points are
displayed on my map at the right position. Until now, everything is fine.
But when I zoom in or zoom out my map, the points still stay at the same
I have seen some problems like that, but they were related to image caching
on the browser. It was like some layers were being redrawn and others
weren't. I don't know if that is what you are experiencing.
Maybe double check your projections coordinates and events on zooming.
On Thu, Nov 12,
hi list,
I want to know if it's possible to make a zoom effet like google map with
OpenLayers 2.8?
Thanks
Jim
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
Try this:
wmsMapLayer.transitionEffect = 'resize';
On Tue, Oct 27, 2009 at 8:43 AM, Jimmy Aumard jimmy.aum...@gmail.comwrote:
hi list,
I want to know if it's possible to make a zoom effet like google map with
OpenLayers 2.8?
Thanks
Jim
___
Thanks Victor it's just what I want
It's possible to have the same effect with a google layer?
Because :
var gphy = new OpenLayers.Layer.Google(Google Physical, {
type: G_PHYSICAL_MAP,
sphericalMercator: true
});
gphy.transitionEffect='resize';
Doesn't
Hi,
what you are trying to accomplish cannot be done with WMS alone. You
would have to apply the same filter to a WFS query, and then at least
parse the bounding box of the query result to set the extent.
Regards,
Andreas.
Arturo Juárez Lima wrote:
Hi,
I was find to process to make a
Jimmy, I just tried that with a wms layer... but I think it should work (or
at least it needs some different configuration steps).
Regards,
Vitor
On Tue, Oct 27, 2009 at 9:29 AM, Jimmy Aumard jimmy.aum...@gmail.comwrote:
Thanks Victor it's just what I want
It's possible to have the same
Hi,
I was find to process to make a filter, this is
function FiltraFeature(wms,query){
var filtro_temp = query;
var filterParams = {
cql_filter: null
};
if (OpenLayers.String.trim(filtro_temp) != ) {
Hi,
I wish to have a map of the UK with different layers being displayed
depending on how close I am zoomed into the map.
Currently I can view a map of the UK which displays fine via OpenLayers.
However I can only view the first layer of my map ( a 1:5 scaled image
of the UK). I wish to
You're not using the setCenter method properly. See its documentation :
http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.setCenter
I noticed you use OpenLayers 2.5. Just keep in mind that it's an old
version and that some cool new
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
Hi. I´m dealing with an issue and I'm out of ideas right now.
I've a layer created in my own WMS server, this layer is built with data from
some part of my city of residence, but when I load the layer with OL, the zoom
level is very far away, because of that my map looks like a tiny black dot,
Hi Raul,
just a guess: JavaScript / OpenLayers is case sensitive, so first you
would need to write:
minExtent: new OpenLayers.Bounds(-75.69927, -4.79079, -75.67719, 4.81273),
maxExtent: new OpenLayers.Bounds(-180,-90,180,90)
Then you could set min- and max extent on the map-object as well,
Hi,
You can either specify the zoom level in your map options and drop the
zoomtomaxextent, or once you've loaded data, you a map.centerfunction set on
whatever data you load.
best,
N
e.g.
if( ! map.getCenter() ){
sites2.events.register('loadend', sites2,
Hi all, I am having a hard time getting my OpenLayers web client to zoom in
past Scale = 1 : 1066. Here are my map options:
var options = {
projection: new OpenLayers.Projection(EPSG:900913),
displayProjection: new OpenLayers.Projection(EPSG:4326),
Excerpts from Tim Michelsen's message of Tue Apr 21 15:38:12 -0400 2009:
Hello,
does Openlayers have a feature like
zoom to layer?
Like in many desktop GIS where you can use this to get automatically to
an adequate extend and zoom level.
Do you mean zoom to best fit the data on a layer?
-boun...@openlayers.org] Im
Auftrag von Antonio Jose Silva (Toze)
Gesendet: Donnerstag, 16. April 2009 23:22
An: users@openlayers.org
Betreff: [OpenLayers-Users] Zoom to selected features
Hi,
I´m a newbie in openlayers and Im trying to do a service with a map, where
I make a selection and after
Hi,
I´m a newbie in openlayers and Im trying to do a service with a map, where
I make a selection and after that I want to zoom in to the selected feature.
How can I make it, any help?
Thank you in advance,
Toze
___
Users mailing list
Hi,
i have a strange problem. I have a map, which uses two OpenStreetMap
layers and a Marker layer on top.
With an old version of my code - only simple functions, no OO patterns -
zooming worked like expected. After a redesign to encapsulate it all in
objects, the zoom function behaves very
On Wed, Feb 11, 2009 at 08:16:39PM +0100, Detlef Reichl wrote:
Hi,
i have a strange problem. I have a map, which uses two OpenStreetMap
layers and a Marker layer on top.
With an old version of my code - only simple functions, no OO patterns -
zooming worked like expected. After a redesign
Hi,
Am Mittwoch, den 11.02.2009, 14:43 -0500 schrieb Christopher Schmidt:
You must be very new to the list, since the previous email to yours,
sent just 4 hours ago, was the exact same problem.
http://openlayers.org/pipermail/users/2009-February/010353.html
that's right, I've only
On Mon, Feb 09, 2009 at 01:23:11AM -0800, Derek Watling wrote:
Thanks Ivan
I don't really want to start hacking the code because when the next version
is released I will have to remember to go and re-hack it. Hopefully
Christopher and the excellent team at MetaCarta will pick up on this
Gesendet: Montag, 9. Februar 2009 11:28
An: Derek Watling
Cc: users@openlayers.org
Betreff: Re: [OpenLayers-Users] Zoom bar without pan controls
hey, was just trying to point out that u can make it by urself by looking
into PanZoomBar class ;)
just take out everything related to buttons, rename file
Christopher Schmidt-2 wrote:
Christopher has not done most of his work on OpenLayers for MetaCarta
for more than a year, and does almost all work for OpenLayers on his own
time. Suggesting how people should spend their free time is rude, and
demonstrates a lack of support for the open
Hi,
On Tue, Feb 3, 2009 at 1:27 PM, Derek Watling de...@cmainfo.co.za wrote:
I have come up with my own solution. Is there a better way of doing this?
Why not just use OpenLayers.Control.ZoomPanel?
Regards,
Andreas.
var panZoomBar = new OpenLayers.Control.PanZoomBar();
Hello,
I am working on an OpenLayers / GeoServer project and am trying to utilize
the Filter tool, which is built into the GeoServer 1.7.0 OpenLayers preview
template. I would like to be able to zoom to the extent of the filtered
features- so the user can basically enter a search, which
Hi. Would listening to the vector layer's featuresadded events and do
map.zoomToExtent(layer.getDataExtent()) in the listener work for you?
Eric
2008/11/24, bmcbride [EMAIL PROTECTED]:
Hello,
I am working on an OpenLayers / GeoServer project and am trying to utilize
the Filter tool, which
.
Anyway, not sure if this helps you?
Brad..
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of bmcbride
Sent: Tuesday, November 25, 2008 1:41 AM
To: users@openlayers.org
Subject: [OpenLayers-Users] Zoom to Filter Extent
Hello, I am working on an OpenLayers
Hello Semantica,
Please provide us with a link to a live example of the problem you are
having, that will help a lot in debugging the issue.
Also important for us to know is the version of openlayers you are using.
Thanks,
Erik
On Mon, Sep 22, 2008 at 7:23 PM, Semantica [EMAIL PROTECTED]
Christopher Schmidt wrote:
On Fri, Sep 05, 2008 at 01:10:53PM -0600, Bill Thoen wrote:
Christopher Schmidt wrote:
In 2.7RC1 (just released) you can use getDataExtent() for that. (We
didn't add getDataExtent for vector layers until after 2.6.)
Also, using 2.7RC1 would help us get
On Mon, Sep 08, 2008 at 09:27:03AM -0600, Bill Thoen wrote:
Christopher Schmidt wrote:
On Fri, Sep 05, 2008 at 01:10:53PM -0600, Bill Thoen wrote:
Christopher Schmidt wrote:
In 2.7RC1 (just released) you can use getDataExtent() for that. (We
didn't add getDataExtent for vector
How about map.zoomToMaxExtent()? Eric
2008/9/5, Bill Thoen [EMAIL PROTECTED]:
All I know is that I have some vectors in a layer somewhere on the map,
but I don't know where their center is or how far out I need to zoom to
them all at the maximum zoom scale. I need a bounding box for an entire
That would zoom out to the entire map. I just want to automatically zoom
out to the extents of a layer and center on it. I shouldn't have called
it 'baseLayer' because it's not a Base Layer; it's an Overlay Layer.
Imagine a Base Layer of North America, and then you load a WFS layer of
say,
Never mind... I just figured out that getDataExtent() applies to
markers, not features like polygons and linestrings. Does anybody know
if there is a function for WFS layers that returns the bounding box of
that layer regardless of what type of map objects it contains?
Bill Thoen wrote:
If I
On Fri, Sep 05, 2008 at 11:30:20AM -0600, Bill Thoen wrote:
Never mind... I just figured out that getDataExtent() applies to
markers, not features like polygons and linestrings. Does anybody know
if there is a function for WFS layers that returns the bounding box of
that layer regardless
I just implemented the 2.6 release with the ScaleBar and LoadingPanel addins
linked to single file build. Now the shift-zoom zoom box outline has
disappeared. No other changes were made to code, css, etc. I am sure there
is a property somewhere that I now need to set for line width and color to
On Thu, Sep 04, 2008 at 10:06:19AM -0700, Chip Taylor wrote:
I just implemented the 2.6 release with the ScaleBar and LoadingPanel addins
linked to single file build. Now the shift-zoom zoom box outline has
disappeared. No other changes were made to code, css, etc. I am sure there
is a
I want to zoom a map to the extent of a layer (called baseLayer) but
when I try:
map.zoomToExtent(baseLayer.getDataExtent());
the baseLayer.getDataExtent() function returns null. When I don't
include this line everything works fine (the layer appears normally,
only without the zoom that I
Hi Bart,
I tried that but I get an null error on format.context.bounds.
Bart van den Eijnden wrote:
Hi Joost,
it should be as simple as:
map.zoomToExtent(format.context.bounds);
Best regards,
Bart
I thought this would be simple and probably is, but the solution is
evading
I thought this would be simple and probably is, but the solution is evading
me. I have loaded a WMC into a map but the image is centered in the map
window with lots of white space. I would like the map to zoom to the
context extent. Any ideas on how this can be done? I have tried setting
the
Hi Joost,
it should be as simple as:
map.zoomToExtent(format.context.bounds);
Best regards,
Bart
I thought this would be simple and probably is, but the solution is
evading
me. I have loaded a WMC into a map but the image is centered in the map
window with lots of white space. I would
Does the zoom-in tool only work at integral zoom steps? I don't seem to
be able get to any map scales that are not available through the ZoomPan
control. Is this normal behavior and is it possible to get to say, zoom
level 2.3 or set the map to any scale desired?
- Bill Thoen
This is the default behaviour for tiled maps, which use pre-rendered
map images at specific resolutions. It is possible to avoid this by
not using tiles - there is a singleTile option when creating a new
layer that accomplishes this - and using the fractionalZoom property
(which I am not
On Thu, Aug 07, 2008 at 06:20:23PM -0600, Bill Thoen wrote:
Does the zoom-in tool only work at integral zoom steps?
Yes, with the exception of fractional zoom
(http://openlayers.org/dev/examples/fractional-zoom.html), which has
limitations that it can only be used for/with servers that support
On Thu, Aug 07, 2008 at 08:36:39PM -0400, Paul Spencer wrote:
This is the default behaviour for tiled maps, which use pre-rendered
map images at specific resolutions.
This is true with or without tiling: setting singleTile doesn't change
this behavior. Fractional zoom can be used with tiles
Hi folks
i want to zoom to the extent auf a GML-Layer, after it has been loaded.
My idea is:
1. defining the layer, name it aLayer
2. adding a loadend-event to the layer
3. zooming map to maxextent()
4. within the loadend-function I say
map.zoomToExtent(aLayer.getExtent());
Hello!
has anybody calculated the resoluzion for zoomlevel for the epsg:900913.
What I intend to do is to use tiles for the first 10 zoom levels and then
call directly a wms server. I think the only way is to set the minResolution
parameter of the tiled layer equal to the maxResolution of the
PROTECTED] On
Behalf Of Intengu Technologies
Sent: 04 February 2008 09:09 AM
To: Users@openlayers.org
Subject: Re: [OpenLayers-Users] Zoom to a region using drop down selection
box
Josh,
I have the data, what I had done was to get the centroids of the polygons,
perhaps I need to get
I live is South Africa and the geocoding service offered by Google,
Yahoo, Geonames are not comprehensive. What I would like to do is the
following from a drop down selection box is for Province,
Municipality, Town:
1. Select a province (have lat long of province - centroid) , google
maps zooms
Sindile,
Are you asking how to create the data to fill in the dropdowns, or do
you already have this all figured out and are asking how to have
OpenLayers zoom to a location that you already have extents for?
And if you are asking how to create the dropdowns themselves, then do
you have
Hi
I have added a wfs layer with the filter option . Now I want to zoom to it
.I am be able to do it with :
bounds = new
OpenLayers.Bounds(-9441241.90017852,4636148.46449042,-8963467.99653102,5159004.74932964);//
state :ohio
map.zoomToExtent(bounds);
but I have to do it
Hi
getBounds()
On Nov 26, 2007 12:47 PM, goeserver developer [EMAIL PROTECTED] wrote:
Hi
I have added a wfs layer with the filter option . Now I want to zoom to it
.I am be able to do it with :
bounds = new
Hi,
thanks, Its working fine on FF except some problem with IE .
Eric Lemoine-3 wrote:
Hi
getBounds()
On Nov 26, 2007 12:47 PM, goeserver developer [EMAIL PROTECTED] wrote:
Hi
I have added a wfs layer with the filter option . Now I want to zoom to
it
.I am be able to do it
Hi!
Is some solution,example how to realize zoom to object using OpenLayers.
Something similar like in Ka-map! search used (
http://www.ominiverdi.org/ka-map/ka-map/htdocs/
)
Thanks!
RKarru
___
Users mailing list
Users@openlayers.org
Hi!
Is some solution,example how to realize zoom to object using OpenLayers.
Something similar like in Ka-map! search used (
http://www.ominiverdi.org/ka-map/ka-map/htdocs/
)
Thanks!
RKarru
Hi Raivo,
I've wrote that ka-map code.
things are not that different in OL.
to make it easy,
81 matches
Mail list logo