[OpenLayers-Users] Modifiable Feature - a minimum area

Chris Jones cijones at lycos.com
Thu Apr 23 04:16:57 EDT 2009


Thanks for taking time to test it. 

In the meantime I created a new version of the ModifyFeature control that
would resize a feature if it became too small, which happened in the drag
vertex method. This seems to work fine if I deselect the feature manually
before deactivating, but if I still have a selected feature on the
deactivation of the new control I get an error 'layer has no properties'
raised in a call to MultipleSelect. Once this error has been triggered the
select feature doesn't function until I reload the page.

In the interest of debugging, I removed all of my custom code leaving
effectively a straight copy of ModifyFeature other than the name of the
class, shown below:

OpenLayers.Control.iModifyFeature = OpenLayers.Class(OpenLayers.Control, {

and 

CLASS_NAME: "OpenLayers.Control.iModifyFeature"

Using the renamed version of ModifyFeature (iModifyFeature) caused the same
error, however using the original ModifyFeature worked perfectly as
expected. Any ideas on what I might be doing wrong?





Eric Lemoine-2-2 wrote:
> 
> On Mon, Apr 20, 2009 at 9:41 AM, Chris Jones <cijones at lycos.com> wrote:
>>
>> Thanks for your input Eric. Following your lead I've had a quick look at
>> the trunk, and there is also a sketchstarted\modified\complete which
>> might be what I'm looking for.
>>
>> Failing that, would it be possible to either use the mouse handler or
>> renderer to achieve the behaviour I'd like?
> 
> I just gave it a try and I was wrong: "vertexmodified" gets triggered
> at some point when a *virtual* vertex is moved, so that may be the
> only event type you'd have to listen to.
> 
> Regards,
> 
> 
> -- 
> Eric Lemoine
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> 
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Modifiable-Feature---a-minimum-area-tp2644720p2681658.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list