[OpenLayers-Dev] SelectFeature with VML Renderer - _troot not clickable

Alexandre Dube adube at mapgears.com
Wed Jun 15 14:16:31 EDT 2011


Hello,

   I already had the same problem.  Setting the 'labelSelect' symbolizer 
to true fixed the issue for me.  See :

http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Feature/Vector-js.html
(look for 'labelSelect', under Symbolizer property).

HTH,

Alexandre


On 11-06-15 11:56 AM, Peter Körner wrote:
> Hi all,
>
> I'm working on displaying vector icons on a map. Unfortunately the map 
> should work in IE as well. It does so, however the text on the vector 
> icons is not clickable (ie they don't trigger a popup to be opened) 
> whereas a click on the underlying image opens the popup as expected. 
> The problem only affects the VML renderer.
>
> The click event is handled like this:
>
> map.addControl(
>     new OpenLayers.Control.SelectFeature(jobsLayer, {
>         autoActivate: true,
>
>         onSelect: function(feature) {
>
>             // ...
>
>         }
>     })
> );
>
> However onSelect is not called when a olv:textbox is clicked. I 
> created a simple test case:
>
> http://maps.personalwerk.de/temp/select-bug.html
>
> In IE it's possible to click the circle but it's not the text, in 
> Chrome or Firefox both can be clicked to trigger the alert-box.
>
> My questions are now:
> * is this a bug or a limitation of the VML renderer?
> * is this bug known and I just didn't find it?
> * where should I look for the bug in the source?
>   I already took a brief look at VML.js but didn't find anything about
>   events.
>   I also looked at SelectFeature.js but didn't find a VML-only
>   reference.
>
> Thank you all,
> Peter
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev


-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the Dev mailing list