[OpenLayers-Users] Is it possible to make the geometry persist event the measure control is cancdled?
maven apache
apachemaven0 at gmail.com
Sat Jun 1 06:10:30 PDT 2013
IN fact, I have tried that, but it does not work. I have
created a vector layer, in the measure event, I get the geometry,
clone it, add it to the layer using the addfeature method, but, it
does not worked as expected.
reply by my HTC phone, sorry for my spell.
在 2013年6月1日星期六,Vince Lotito <vince at vvl.com> 写道:
>
> In your measure control tap into the measure event, from there grab the
geometry and clone it into a vector layer.... You'll also have to create a
text label at the centroid with the actual measurement.
>
> Vince
>
>
> Sent from my iPad
>
> On Jun 1, 2013, at 5:15 AM, "maven apache" <apachemaven0 at gmail.com> wrote:
>
>> Hi:
>>
>> I am using the Measure Control in OpenLayers.
>>
>> And I want to keep the geometry presisit in the map when one measure
completed.
>>
>> I know there is a property named "persisit" to make the geomery visible
after the measure completed, but once the cancel is called for the control
or the deactivate of the handler is called, the geometry will disappeared.
This is not what I want.
>>
>> So I wonder if my requirement is possible?
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130601/36f0208a/attachment.html>
More information about the Users
mailing list