[OpenLayers-Users] add remove vertex in line feature??
Alexandre Dube
adube at mapgears.com
Wed Jun 9 12:21:44 EDT 2010
Imran,
You could check how the controls does it. Taking a look at the
"handleKeypress" method inside ModifyControl.js should do the trick.
Regards,
Alexandre
Imran Rajjad wrote:
> Hi,
>
> well I have to draw the line through a function and not directly from
> the user. Is it possible to add single line segment and then removing
> it? I will take a look at the link. Thanks
> regards,
> Imran
>
> On Wed, Jun 9, 2010 at 6:08 PM, Alexandre Dube <adube at mapgears.com> wrote:
>
>> Hi,
>>
>> It's possible with the ModifyFeature control [1]. Use 'draw line', draw your
>> line then press the 'del' key when hovering a vertex to remove it.
>>
>> [1] http://www.openlayers.org/dev/examples/modify-feature.html
>>
>> Regards,
>>
>> Alexandre
>>
>>
>> Imran Rajjad wrote:
>>
>>> Hi,
>>>
>>> I`m trying to draw a pattern path in open layers using
>>> OpenLayers.Feature.Vector, my application requires to dynamically add
>>> and remove vertices of a line. Is it possible in openlayers or do I
>>> need to redraw the whole thing at each change?
>>>
>>> regards,
>>> Imran
>>>
>>>
>>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>>
>>
>
>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list