[OpenLayers-Dev] svg features + events

Christopher Schmidt crschmidt at metacarta.com
Mon Nov 10 23:07:33 EST 2008


In Marker Layers, the elements we register events on are included
directly in the Layer container. (the Layer's 'div'.)

In Vector Layers, the elements we care about being targets are included
in sub-elements of the layer container -- <layer-div><svg><path/ ></></>

If we change this such that the SVG element is at the same level as the
layer div, then events on lower SVG layers get triggered appropriately,
with the correct targets, so that we could do multi-layer selectfeature
controls with events and no other weird hackiness.

However, <svg> elements don't respect z-Index, and you can't do other
things like set a .className on them, so they can't replace a layer div
entirely.

No action item here, just some brief investigations.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list