Hi list,

I've run into a strange issue present even in the trunk of OpenLayers:

If you have a vector-feature that is rendered with a graphicName (to have a rectangle or triangle visualisation) and a select control working on the feature's layer, if you click on the feature (selection control is active) and have Ctrl pressed on the keyboard, a new browser window opens with an URL like "http://openlayers.org/dev/examples/select-feature.html*#OpenLayers.Layer.Vector_39-triangle*";. I see this behaviour in Firefox 3.6.13 on Ubuntu 10.10.

The vector-SVG is rendered like this:
<use id="OpenLayers.Geometry.Point_180" cx="173.80000305175895" cy="112.36666870117206" r="1" *href="#OpenLayers.Layer.Vector_39-triangle"* width="36" height="36" x="155.80000305175895" y="94.36666870117206" fill="blue" fill-opacity="0.4" stroke="blue" stroke-opacity="1" stroke-width="1.6666666666666667" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="none" pointer-events="visiblePainted" cursor="pointer"/>

and a symbol definition of

<defs id="OpenLayers.Layer.Vector_39_defs"><symbol *id="OpenLayers.Layer.Vector_39-triangle"* viewBox="-10 -10 30 30"><polygon points="0,10 10,10 5,0 0,10"/></symbol></defs>

You can experience the behaviour by visiting:

http://openlayers.org/dev/examples/select-feature.html

and running this inside Firebugs console, after rendering is done:
OpenLayers.Feature.Vector.style['default']['graphicName'] = "triangle";

Select the "draw a point" radio button, draw a point on the map, and select the "select feature (0 features selected)" radiobutton, uncheck the checkbox "select features in a box".

Now hold down Ctrl and click on the feature: In my browser a new window is opened.

Do you have an idea about how to fix this?

Best regards and thanks in advance,
Marc



_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to