On Tuesday, May 26, 2009, <[email protected]> wrote:
>
>
>
>
>
>
>
> Hi All,
>
> To modify a feature, I currently use the
> drawcontrols code here below. When I have rectangle feature, I would like to
> have more flexibility when resizing (i.e. proportions not conserved). Do I
> have
> to switch to another type of feature to have more dregree of freedom when
> modifying the feature?
Using the modify feature control's default mode (RESHAPE) should give
you what you want, no? (what tool do you use to draw rectangles? You
should use a DrawFeature control with a RegularPolygon handler)
Cheers,
>
> drawControls =
>
> {
> modify: new
> OpenLayers.Control.ModifyFeature(rectangleLayer,
>
> {'displayClass': 'olControlModifyFeature', onModification:
> rectangle_feature_modified,
> mode:
> //OpenLayers.Control.ModifyFeature.RESHAPE
> |
>
> OpenLayers.Control.ModifyFeature.DRAG
> |
>
> OpenLayers.Control.ModifyFeature.RESIZE})
>
> };
>
> Regards,
>
>
> Stéphane Poirier
> Professionel de recherche au
> CARTEL
> Centre d'Applications et de Recherches en Télédétection
> Département
> de géomatique appliquée
> Université de Sherbrooke
> Sherbrooke (Québec),
> CANADA J1K 2R1
> Tel.: (+1 819) 821 8000 #61904
> Fax.: (+1 819) 821
> 7944
> [email protected]
> http://www.usherbrooke.ca/cartel
>
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users