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

Peter Körner osm-lists at mazdermind.de
Wed Jun 15 11:56:48 EDT 2011


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


More information about the Dev mailing list