[OpenLayers-Dev] Re: OpenLayers without warnings using the Closure Compiler in VERBOSE mode

2011-01-12 Thread Xavier Mamano (jorix)
oops!, there's an erratum. Is: OpenLayers.Util.applyDefaults(B.prototype, A.prototype); // Inherits from: A is not: OpenLayers.Util.applyDefaults(B, A); // Inherits from: A Xavier Mamano Xavier Mamano (jorix) wrote: > > Hi developers, > ... > The code would be: > /** @constructor */

[OpenLayers-Dev] OpenLayers without warnings using the Closure Compiler in VERBOSE mode

2011-01-12 Thread Xavier Mamano (jorix)
Hi developers, I wondered why the Closure Compiler generates many warnings in OpenLayers? A consequence of this I have been researching how to build OpenLayers in VERBOSE mode without generating warnings. For obvious reasons I limited myself to lite.cfg :-) This post is not a proposal! My in

[OpenLayers-Dev] Openlayers as rubygem = ropenlayer

2011-01-12 Thread David Tapiador
Hello, My name is David. First at all, thanks for all the job behind openlayers. It is easy to use, it is easy to understand and it is a really powerfull and usefull library :-) Three months ago, i started a work for a customer who needed a map in him website. I choosed openlayers, ofc! And, b

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Alexandre Dube
Again, I agree with Tim. Even though only a bunch of people use Illustrator / QGis and lots use GoogleMaps, the feature we're talking about (i.e. feature editing) is more "advanced user" oriented IMHO. Also, people easily adapt to new features. Key shortcuts are really, really useful and whe

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Tim Schaub
Sure, just don't mess with snapping :) There are people who have already paid for the current set of behavior. An option to pan as you get near the edge seems like a nice compromise. My favorite will still be space bar to suspend drawing. On 1/12/11 9:58 AM, Emmanuel Belo wrote: Hi, Pleas

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Benoit Quartier
Hello, On Wed, Jan 12, 2011 at 5:27 PM, Yves Jacolin wrote: > Hello, > > Le mercredi 12 janvier 2011 17:22:17, Alexandre Dube a écrit : > > I agree with Tim. Being a part time user of Adobe products, I really > > like these kinds of key shortcut while editing. This is an excellent > idea. > > Q

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Bruno Binet
I think that using modifier is actually more effective, but that would also mean it focus on experienced users that knows about modifiers. In my opinion, the google way to do it is more user friendly because targeted to basic users, whereas desktop applications such as illustrator are targeted to m

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Yves Jacolin
Hello, Le mercredi 12 janvier 2011 17:22:17, Alexandre Dube a écrit : > I agree with Tim. Being a part time user of Adobe products, I really > like these kinds of key shortcut while editing. This is an excellent idea. QGIS behaves like this as well ! > On 11-01-12 11:11 AM, Tim Schaub wrote: >

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Alexandre Dube
I agree with Tim. Being a part time user of Adobe products, I really like these kinds of key shortcut while editing. This is an excellent idea. Alexandre On 11-01-12 11:11 AM, Tim Schaub wrote: I like the behavior of other vector drawing software I've used where a modifier key suspends the

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Tim Schaub
I like the behavior of other vector drawing software I've used where a modifier key suspends the behavior of the activated tool or temporarily activates another. For example, in Illustrator, the space bar temporarily activates the Hand Tool (for dragging) while drawing. This makes for fast d

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Bruno Binet
On 12 January 2011 16:15, Andreas Hocevar wrote: > On Jan 12, 2011, at 14:15 , Eric Lemoine wrote: > >> On Wed, Jan 12, 2011 at 1:22 PM, Andreas Hocevar >> wrote: >>> Hi Eric, >>> >>> thanks for your efforts. My only concern is that adding vertices on mouseup >>> instead of mousedown negatively

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Andreas Hocevar
On Jan 12, 2011, at 14:15 , Eric Lemoine wrote: > On Wed, Jan 12, 2011 at 1:22 PM, Andreas Hocevar wrote: >> Hi Eric, >> >> thanks for your efforts. My only concern is that adding vertices on mouseup >> instead of mousedown negatively affects the user experience when a Snapping >> control is u

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Eric Lemoine
On Wed, Jan 12, 2011 at 2:41 PM, Alexandre Dube wrote: > Hi Eric, > >  I really like the idea of being able to pan while drawing features.  I > tried yours examples and here's my comments about them. > > === about your patch === > >  Drawing a new point on mouseup seemed odd on first impression, b

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Alexandre Dube
Hi Eric, I really like the idea of being able to pan while drawing features. I tried yours examples and here's my comments about them. === about your patch === Drawing a new point on mouseup seemed odd on first impression, but I could live with it. Then, I noticed some down effects. W

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Eric Lemoine
On Wed, Jan 12, 2011 at 1:22 PM, Andreas Hocevar wrote: > Hi Eric, > > thanks for your efforts. My only concern is that adding vertices on mouseup > instead of mousedown negatively affects the user experience when a Snapping > control is used. This is because the user doesn't see any more where

[OpenLayers-Dev] How to highlight a selected features by using a FIPS

2011-01-12 Thread Zhanping Shi
Hi Folks, I am struggling a select features by using its attributes ( no click on the features directly and just click on a dropdown list). the code snip is as below, but it would not work, can you any guys provide a idea? It seems the function doesn't work as below, var selectedFeatures = O

Re: [OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Andreas Hocevar
Hi Eric, thanks for your efforts. My only concern is that adding vertices on mouseup instead of mousedown negatively affects the user experience when a Snapping control is used. This is because the user doesn't see any more where the vertex is going to be snapped to. At this point, I have no i

[OpenLayers-Dev] "allow pan while drawing" patch

2011-01-12 Thread Eric Lemoine
Hello Currently the map cannot be panned when a draw feature control is active. Google Maps allows it, and I think it would be great that OpenLayers allow it as well. I've started prototyping this in a sandbox. It currently it works for "draw point" and "draw line" only (and it breaks the freehan