[OpenLayers-Dev] zindex of vertices in ModifyFeature control

Eric Lemoine eric.lemoine at camptocamp.com
Sat Aug 22 04:10:27 EDT 2009


On Saturday, August 22, 2009, Paul Spencer <pspencer at dmsolutions.ca> wrote:
> Talking to myself again, this was only a partial fix as only the
> virtual vertices (doh) are affected - the real vertices are still
> below my polygon.  I *think* this may be because of how I am using a
> style map with a context.  Will investigate further.

Hi Paul. Note that the modify feature control renders the vertices
with the "default" render intent.
>
> Cheers
>
> Paul
>
> On 21-Aug-09, at 6:00 PM, Paul Spencer wrote:
>
>> And of course I found the answer directly after my question, I can set
>> modifyControl.virtualStyle.graphicZIndex = 10 to put the virtual
>> points above my features.
>>
>> Is this a bug in the modify control, i.e. should it check the
>> graphicZIndex of the selected feature and adjust the virtualStyle
>> accordingly so the edit controls appear on top?
>>
>> Cheers
>>
>> Paul
>>
>> On 21-Aug-09, at 5:53 PM, Paul Spencer wrote:
>>
>>> Hi,
>>>
>>> I'm using the ModifyFeature control and have an issue where the small
>>> circles that are used to modify a polygon or line are 'under' the
>>> feature itself which results in parts of the circles not being
>>> available for click/drag.
>>>
>>> I am using a custom style map for my features which is used for
>>> default and selected styles.  The style defines a graphicZIndex for
>>> points of 8, for lines 4 and for polygons 2 which I thought might put
>>> the editing points on top.
>>>
>>> Any ideas?
>>>
>>> Cheers
>>>
>>> Paul
>>>
>>> __________________________________________
>>>
>>>   Paul Spencer
>>>   Chief Technology Officer
>>>   DM Solutions Group Inc
>>>   http://research.dmsolutions.ca/
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev at openlayers.org
>>> http://openlayers.org/mailman/listinfo/dev
>>
>>
>> __________________________________________
>>
>>    Paul Spencer
>>    Chief Technology Officer
>>    DM Solutions Group Inc
>>    http://research.dmsolutions.ca/
>>
>> _______________________________________________
>> Dev mailing list
>> Dev at openlayers.org
>> http://openlayers.org/mailman/listinfo/dev
>
>
> __________________________________________
>
>     Paul Spencer
>     Chief Technology Officer
>     DM Solutions Group Inc
>     http://research.dmsolutions.ca/
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>

-- 
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



More information about the Dev mailing list