[OpenLayers-Users] vector feature ordering (z)

2008-01-15 Thread Attila Csipa
I'm curious as to what the suggested way of dealing with overlapping vector features is and how to influence which one get to be actually chosen for a handler, while preserving the original data as close as possible (bc of serialization after manipulation) ?

Re: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer

2008-01-14 Thread Attila Csipa
On Monday 14 January 2008 23:33:04 Maria Panagou wrote: Yes, but if refer to satellite layer in this way, wouldn't that mean that when I zoom in that layer, something will happen? I really want something to happen (display/hide layers) when I zoom in the map generally. At initialization of

Re: [OpenLayers-Users] add, remove base layers depending on zoom, change baselayer

2008-01-13 Thread Attila Csipa
On Sunday 13 January 2008 19:47:14 Maria Panagou wrote: I'm trying to display a different base layer, depending on zoom levels. I use the following code: My first idea would be to put all layers that are referenced (regardless of zoom level) in my map and then just change their properties to

Re: [OpenLayers-Users] Controls and map events

2008-01-12 Thread Attila Csipa
On Saturday 12 January 2008 14:40:25 Eric Lemoine wrote: Setting the drag handler's stopDown property to false won't help you because the event you want to get click not mousedown. Anyhow the D'oh, right ! (this is where slight forehead slapping takes place on my part). So apply the patch and

Re: [OpenLayers-Users] Controls and map events

2008-01-11 Thread Attila Csipa
On Thursday 10 January 2008 12:29:26 Eric Lemoine wrote: Since pretty soon, the drag handler has a stopDown API property that Now that's what I call bleeding edge :) one can set to allow/disallow event propagation. You can try to do dragControl.dragHandler.stopDown = true. Currently, there's

Re: [OpenLayers-Users] Controls and map events

2008-01-11 Thread Attila Csipa
On Friday 11 January 2008 17:49:09 Eric Lemoine wrote: In any case (in mine DragHandler and a 'click' Map.Event above a feature), I've tried setting both true/false manually but that did not change much as (according to my admittedly poor firebug skills) the event still gets stopped in

[OpenLayers-Users] Controls and map events

2008-01-09 Thread Attila Csipa
Stiff familiarizing myself with OpenLayers, I ran into something I'm not sure is a design intention or am I simply doing something wrong: Controls do not have events, and if I have a control that operates on features, my map events get obstructed. Example - I have a Control.DragFeature on the

Re: [OpenLayers-Users] Drag cancellation ?

2008-01-07 Thread Attila Csipa
On Monday 07 January 2008 12:39:30 Eric Lemoine wrote: Off the top of my head: you could try to erase the feature before calling layer.redraw() in the onComplete() callback. To erase the feature use feature.layer.eraseFeatures([feature]). one feature with one geometry. The magic line

[OpenLayers-Users] Drag cancellation ?

2008-01-05 Thread Attila Csipa
I was writing functions for a DragFreature control and wanted to implement an undo/invalid choice type of feature, but I can't seem to find how to cancel a drag (if f.e. the drop location is found to be invalid in the onComplete function). I tried restoring geometry (which I saved in onStart)

[OpenLayers-Users] Feature.Vector.atPoint ?

2007-12-10 Thread Attila Csipa
I have a question about this method, the description says Determins whether the feature intersects with the specified location., however in my experience this returns true if the given point is in the feature's _bounding box_, not the feature itself. Is this the intended behaviour (a bit of