Re: [OpenLayers-Dev] DeleteFeature control

2009-07-23 Thread Eric Lemoine
On Wed, Jul 22, 2009 at 7:22 PM, Alexandre Dubead...@mapgears.com wrote: Eric Lemoine wrote: Alexandre I now understand one of your problems, you need to give the handler a reference to the control, but the control does not exist yet since you're actually creating it. Giving the handler a

Re: [OpenLayers-Dev] Trigger save event

2009-07-23 Thread jessisena
The problem is that in the ticket about Save.js, you declared and trigger on commit these two new events: EVENT_TYPES: [start,success, fail], ... this.events.triggerEvent(success, evt); In my client I have a layer, which is the listener of the event success, like this: var

Re: [OpenLayers-Dev] Trigger save event

2009-07-23 Thread Eric Lemoine
On Thu, Jul 23, 2009 at 8:29 AM, jessisenajessica.s...@scpec.net wrote: The problem is that in the ticket about Save.js, you declared and trigger on commit these two new events: EVENT_TYPES: [start,success, fail], ... this.events.triggerEvent(success, evt); In my client I have a layer,

Re: [OpenLayers-Dev] Trigger save event

2009-07-23 Thread jessisena
Thanks for the response, I've tried it, but it still doesn't work... Maybe I have to register the event somewhere else? I activate the savestrategy, through a button, by this way: var save = new OpenLayers.Control.Button({ title: Save Changes, trigger: function()

[OpenLayers-Dev] handler style

2009-07-23 Thread jessisena
Hi, Anybody knows if is possible to have two differents controls Draw feature, with the same kind of handler (for example point), and everyone with their own style? That is, if I can have two controls that draw points with different styles, in the same layer. Thanks -- View this message in

Re: [OpenLayers-Dev] handler style

2009-07-23 Thread Alexandre Dube
Hi, jessisena wrote: Hi, Anybody knows if is possible to have two differents controls Draw feature, with the same kind of handler (for example point), and everyone with their own style? That is, if I can have two controls that draw points with different styles, in the same layer. Thanks

Re: [OpenLayers-Dev] DeleteFeature control

2009-07-23 Thread Alexandre Dube
Hi, Eric Lemoine wrote: I still agree with automatic controls and handlers activation/deactivation. Attached an new patch with the simple changes needed. Is it ok ? If it is, I'll open a ticket. Ok to me. Thanks Alexandre, http://trac.openlayers.org/ticket/2196 currently

[OpenLayers-Dev] crosshair control

2009-07-23 Thread 0d560q402
Hello Developers One thing that really annoyed me when using openstreetmap (which uses openlayers of course) is the lack of a crosshair in the center of the map so one can zoom in at exactly the desired point. So well I created a crosshair control. It's pretty straight forward development, quite