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?

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
stephane.poir...@usherbrooke.ca
http://www.usherbrooke.ca/cartel
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to