Re: [OpenLayers-Dev] ModifyFeature control - multiple selection support

2009-12-11 Thread Andreas Hocevar
Hi,

I think the future way to go is something based on Tim's experiments
with the FeatureAgent. See the example:
http://dev.openlayers.org/sandbox/tschaub/select/examples/feature-events.html

Multilayer support for ModifyFeature would e.g. still not make it
possible to grab features that are entirely covered by another feature.
With the FeatureAgent, you would also be able to edit such a feature.

Regards,
Andreas.

On 2009-12-11 15:10, Alexandre Dube wrote:
 Hi devs,

   === short version ===

  * Is there any plan to support multiple feature selection in the 
 ModifyFeature control ?
  * If not, would that make sense to support it ?  (Clicking features 
 beyond the first one would enable the editing for those as well while 
 keeping the first one selected too)

   === long version : the need ===

   There's a Redling tool discussion going on on the GeoExt-dev ML [1].  
 Among the needs, there's the multiple feature edition.  Basically, it 
 would be possible for a user to select as many feature as they want and 
 edit their style and/or attributes in a form, but having the possibility 
 to edit the geometry too would be nice.

   After making some tests with the current trunk version of the 
 ModifyFeature control, it's possible to select many features (with the 
 standalone option turned on), but if a feature is already selected, 
 selecting an other feature removes the 1st feature vertexes and 
 reselecting it won't make them reappear.

   === small conclusion ===

   I'm doubt the multi-feature edition could be that useful, but who 
 knows...  I'd like to know your thoughts on the subject, please.

 Many thanks,

 [1] http://trac.geoext.org/wiki/ux/Redlining

   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev


Re: [OpenLayers-Dev] ModifyFeature control - multiple selection support

2009-12-11 Thread Alexandre Dube
Andreas,

Nice. So instead of using a FeatureHandler, the future SelectControl 
would listen to these events instead, right ?

Alexandre


Andreas Hocevar wrote:
 Hi,

 I think the future way to go is something based on Tim's experiments
 with the FeatureAgent. See the example:
 http://dev.openlayers.org/sandbox/tschaub/select/examples/feature-events.html

 Multilayer support for ModifyFeature would e.g. still not make it
 possible to grab features that are entirely covered by another feature.
 With the FeatureAgent, you would also be able to edit such a feature.

 Regards,
 Andreas.

 On 2009-12-11 15:10, Alexandre Dube wrote:
   
 Hi devs,

   === short version ===

  * Is there any plan to support multiple feature selection in the 
 ModifyFeature control ?
  * If not, would that make sense to support it ?  (Clicking features 
 beyond the first one would enable the editing for those as well while 
 keeping the first one selected too)

   === long version : the need ===

   There's a Redling tool discussion going on on the GeoExt-dev ML [1].  
 Among the needs, there's the multiple feature edition.  Basically, it 
 would be possible for a user to select as many feature as they want and 
 edit their style and/or attributes in a form, but having the possibility 
 to edit the geometry too would be nice.

   After making some tests with the current trunk version of the 
 ModifyFeature control, it's possible to select many features (with the 
 standalone option turned on), but if a feature is already selected, 
 selecting an other feature removes the 1st feature vertexes and 
 reselecting it won't make them reappear.

   === small conclusion ===

   I'm doubt the multi-feature edition could be that useful, but who 
 knows...  I'd like to know your thoughts on the subject, please.

 Many thanks,

 [1] http://trac.geoext.org/wiki/ux/Redlining

   
 


   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

___
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev


Re: [OpenLayers-Dev] ModifyFeature control - multiple selection support

2009-12-11 Thread Andreas Hocevar
On 2009-12-11 17:08, Alexandre Dube wrote:
 Andreas,

 Nice. So instead of using a FeatureHandler, the future SelectControl
 would listen to these events instead, right ?

Yes, and it would be much easier to interact with features even without
the SelectFeature control.

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev


Re: [OpenLayers-Dev] ModifyFeature control - multiple selection support

2009-12-11 Thread Alexandre Dube
Right.  The only thing left useful with the SelectFeature control is to 
store the selected features in the layer's selectedFeature's array.  So, 
users would have to do that manually and as they please from there 
on...  Sounds logical.

Thanks Andreas for the pointers,

Alexandre

Andreas Hocevar wrote:
 Yes, and it would be much easier to interact with features even without
 the SelectFeature control.

 Regards,
 Andreas.

   





-- 
Alexandre Dubé
Mapgears
www.mapgears.com

___
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev