[OpenLayers-Users] Modifiable Feature - a minimum area

Chris Jones cijones at lycos.com
Mon Apr 20 03:41:50 EDT 2009


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?



Hi. In trunk the vector layer has the new event type "vertexmodified",
so I was going to suggest to use that when I realized that
"vertexmodified" will not be triggered when a *virtual* vertex is
moved. Maybe someone has a better idea... If not the only thing I can
think of is proposing the addition of a "virtualvertexmodified" or
something.

Cheers,

Eric

2009/4/17, Chris Jones <cijones at lycos.com>:
>
> Hi,
>
> I have a feature drawn on a vector layer, is there a way to enforce a
> minimum\maximum size on it while it is being modified by a ModifyFeature
> control?
>
> I'd hoped that I'd be able to get an event to tell me everytime the feature
> had been changed (ie when it is redrawn) which I could then use to evaluate
> the new area and check it is above\below the min\max. Is there an event to
> allow this, or I am looking at it the wrong way, and there is there a
> better\alternative control\handler combination that can be used to achieve
> the correct behaviour?
>
> Thanks for any help.
>
> Chris
>
> (I originally posted this to the dev group, so sorry if it's your second
> time of reading).
> --
> View this message in context:
> http://n2.nabble.com/Modifiable-Feature---a-minimum-area-tp2644720p2644720.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>

-- 
Envoyé avec mon mobile

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-tp2644720p2662235.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list