Re: [OpenLayers-Users] tiling features to speed detecting features on the client

2008-04-16 Thread Eric Lemoine
On Wed, Apr 16, 2008 at 12:38 PM, Graham Carlyle <[EMAIL PROTECTED]> wrote: > In a previous post I said that I wanted to detect which feature a mouse > had clicked on at the client side in order to be more responsive. The > suggested solution worked well, that of downloading a geojson > represen

Re: [OpenLayers-Users] Sample OL site...

2008-04-16 Thread shipra
Hi Steve Your Application is nice... I have a query I also made an application in openlayers. So want to know din't u have any problems with labeling coz I had many of labels got cut bcoz of tiles also the labels were repeated in tiles. Wat did u use for that? Pls reply.. Regards, Shipra --

Re: [OpenLayers-Users] Vectors on the move

2008-04-16 Thread bradleyspencer
Chris, You are correct. I am using a Handle.Box control and the loX, LoY, HiX, HiY is available which I then simply use to draw into a temporary vector layer. This leaves me with a blue box over the area I selected. So I am already doing as you suggest I believe. My snippet of code is as follows

Re: [OpenLayers-Users] Vectors on the move

2008-04-16 Thread Christopher Schmidt
On Thu, Apr 17, 2008 at 02:10:51PM +1000, bradleyspencer wrote: > I am creating a selection box with a Shift-Mouse control and using this as a > BBox criteria to do a getfeatureInfo request. That works just fine. I also > draw the box on a vector layer and that is fine as well. > > However, when y

[OpenLayers-Users] Vectors on the move

2008-04-16 Thread bradleyspencer
I am creating a selection box with a Shift-Mouse control and using this as a BBox criteria to do a getfeatureInfo request. That works just fine. I also draw the box on a vector layer and that is fine as well. However, when you pan up and down the select box ‘floats’ relative to the base map. Has a

Re: [OpenLayers-Users] confused about spherical mercator

2008-04-16 Thread G. Allegri
Thank you Christopher. Now it's clear... the use of the property is an information for "the others", not for the layer where it is setted Anyway I'm not sure of having unserstood what you've said about "native tile access": is it a prerogative of tiling to be already projected in the right way? Mmm

Re: [OpenLayers-Users] Sample OL site...

2008-04-16 Thread Steve Lime
I remembered the labelcache_map_edge_buffer a second after I hit send. I started with with MapServer layer but ran into some problematic memory leaks that seem to be caused by a weird combination of platform/python/mapserver/tilecache. The MapServer tile cache layer sets that for you and wms doe

Re: [OpenLayers-Users] Sample OL site...

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 03:36:59PM -0500, Steve Lime wrote: > Hi all: Figured I'd share an OL powered site we've got going. > > http://www.dnr.state.mn.us/maps/compass.html > > It's a simple viewer but OL was perfect for this type of thing for us. It's > using: > > - OpenLayers 2.5 > - M

Re: [OpenLayers-Users] change a layer's url

2008-04-16 Thread Gregor Mosheh
Richard Greenwood wrote: > Is it possible to modify a layer's url after it has been added to a > map with map.addLayer()? And similarly, is it possible to dynamically > alter a layer's params? Yeah; I do it all the time. Use mergeNewParams() l = layers['storms']; l.mergeNewParams(date:'20080414',

[OpenLayers-Users] Sample OL site...

2008-04-16 Thread Steve Lime
Hi all: Figured I'd share an OL powered site we've got going. http://www.dnr.state.mn.us/maps/compass.html It's a simple viewer but OL was perfect for this type of thing for us. It's using: - OpenLayers 2.5 - MapServer 5.1 (development version, AGG backend) - TileCache 2 (mod_python, W

[OpenLayers-Users] change a layer's url

2008-04-16 Thread Richard Greenwood
Is it possible to modify a layer's url after it has been added to a map with map.addLayer()? And similarly, is it possible to dynamically alter a layer's params? The things that I am trying to do are: 1. Pass a filter to a MapServer layer, e.g. filter=(id=123) 2. Dynamically change the MapServer l

Re: [OpenLayers-Users] confused about spherical mercator

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 06:28:57PM +0200, G. Allegri wrote: > Hi everyone. > I'm a bit confused about spherical mercator property... > > In the relative example from dev/examples, the SM is set for all the > layers, except the OSM ones. Why? I thought that both OSM and Google > use the Spherical M

[OpenLayers-Users] confused about spherical mercator

2008-04-16 Thread G. Allegri
Hi everyone. I'm a bit confused about spherical mercator property... In the relative example from dev/examples, the SM is set for all the layers, except the OSM ones. Why? I thought that both OSM and Google use the Spherical Mercator. I think I've misunderstood it's effect, when both Projection an

Re: [OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Tim Schaub
Hey- Matthew Doyle wrote: > Hi All, > > Using Openlayers 2.6 and coding a map using the ScaleLine control a la: > map.addControl(new OpenLayers.Control.ScaleLine()); > > My client wishes it only to display kilometres and not miles. Is there any > way to configure this? Or will i have to code a h

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
Fantastic--that worked. Thanks Christopher! Mike Quentel -Original Message- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 April 2008 11:03 To: Mike Quentel Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] popups for markers dynamically generated from KM

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 11:01:58AM -0400, Mike Quentel wrote: > For now, it looks like this: > > function mousedown(evt) { > alert(marker.lonlat); > } > > Not sure how to pass the specifically bound marker object to the > function. Don't use 'marker'. Use 'this'. Regards, -- Christopher Schm

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
For now, it looks like this: function mousedown(evt) { alert(marker.lonlat); } Not sure how to pass the specifically bound marker object to the function. Mike -Original Message- From: Christopher Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 April 2008 10:55 To: Mike Quentel

Re: [OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 10:40:32AM -0400, Mike Quentel wrote: > marker.events.register("mousedown", marker, mousedown); This isn't the useful part of the code. The part of the code that matters is what is *in* the mousedown function. My guess is that it refers to a variable ('marker') rather than

[OpenLayers-Users] popups for markers dynamically generated from KML

2008-04-16 Thread Mike Quentel
I know there is a KML parser and examples that render graphics based on KML inputs. Since some of the KML sources I'm using are particularly huge, instead of having the KML parsed on the client through OL, I have a server-side KML reader (uses XPath/xalan.jar) that returns lists of coordinates to

Re: [OpenLayers-Users] tiling features to speed detecting features on the client

2008-04-16 Thread Graham Carlyle
I've just had a quick look at the WFS layer & tile code and can see how this is similar to what I'm thinking of but it doesn't seem to have a concept of "griddedness" or tile resolution. In order for the server to be able to reduce the detail of the feature geometry it would need something like a w

Re: [OpenLayers-Users] tiling features to speed detecting features on the client

2008-04-16 Thread Paul Spencer
Hi Graham, There is an implementation of something similar to this in the WFS Tile code, and there is also substantial new work being undertaken by Tim Schaub to introduce Vector Behaviours which will be a much more sophisticated way of managing this. http://trac.openlayers.org/wiki/Proposa

Re: [OpenLayers-Users] Node was not found error

2008-04-16 Thread Christopher Schmidt
On Tue, Apr 15, 2008 at 09:42:12PM -0700, Tara Athan wrote: > I would like to thank everyone who has patiently answered my questions. > I am learning javascript for the sole purpose of creating OpenLayers > maps, so it is often difficult for me to understand documentation that > is written assum

Re: [OpenLayers-Users] [OpenLayers-Dev] OpenLayers 2.6 Final Release

2008-04-16 Thread Christopher Schmidt
On Wed, Apr 16, 2008 at 11:17:57AM +0100, Rob wrote: > Great work guys - looking forward to playing with the latest version! > > I know its only 9 hours old, but the openlayers.org homepage still refers to > 2.5, and I cant figure out a way to login and change it for you ( the > homepage doesnt se

[OpenLayers-Users] tiling features to speed detecting features on the client

2008-04-16 Thread Graham Carlyle
In a previous post I said that I wanted to detect which feature a mouse had clicked on at the client side in order to be more responsive. The suggested solution worked well, that of downloading a geojson representation of the features up front and using the 2.6 OL feature of detecting whether the f

Re: [OpenLayers-Users] [OpenLayers-Dev] OpenLayers 2.6 Final Release

2008-04-16 Thread Rob
Great work guys - looking forward to playing with the latest version! I know its only 9 hours old, but the openlayers.org homepage still refers to 2.5, and I cant figure out a way to login and change it for you ( the homepage doesnt seem to be part of the wiki?). On 16/04/2008, Christopher Schmid

[OpenLayers-Users] problem with tilecache layer

2008-04-16 Thread Simone Gadenz
Hi all! I have a strange bahavior (error?)wrapping the dateline in a tilecache layer. The column of tiles poistioned right after 180 longitude load empty images. This is one of the image url that is asked to the server: http://139.191.68.15/tscache/pop04sm/02/000/000/004/000/000/001.png. I

[OpenLayers-Users] Custom Box handler conflict?

2008-04-16 Thread Diego Guidi
I'm using the brand new 2.6 (well done guys!) but I haven't try with older versions, so... In my website I'm using OpenLayers and NavToolBar component, that implements a ZoomBox handler for a zoom rect funtion that works well. I've tried to add this custom components, taken from the openlayers samp

Re: [OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Zac Spitzer
http://dev.openlayers.org/docs/files/OpenLayers/Control/ScaleLine-js.html check the properties topOutUnits & topInUnits there is a bug with IE if you try and hide the bottom or top set by setting these values to be empty http://trac.openlayers.org/ticket/1478 z On Wed, Apr 16, 2008 at 5:06 PM

[OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Matthew Doyle
Hi All, Using Openlayers 2.6 and coding a map using the ScaleLine control a la: map.addControl(new OpenLayers.Control.ScaleLine()); My client wishes it only to display kilometres and not miles. Is there any way to configure this? Or will i have to code a hack or design my own custom scale which