Hi,
I have created a map that displays some nodes. For each node a marker gets displayed, with a label which is set to ${title} .
In IE7 and IE8 the marker wont get output. I think the problem is that IE version prior to 9 have no support for svg and therefore openlayers uses the vml renderer. It seems that the vml renderer has difficulties outputting the label.

So, my question would be whether it is only me having this behavior or is this a general problem.
If so, is there any solution to this?

I'm using openlayers 2.x-beta1 and http://openlayers.org/api/2.11/OpenLayers.js as openlayers source.

Comments

manojsaini’s picture

Hi

I am trying to add ${title} as label in style. But I am getting 'undefined' in map. Can you help me to sort this issue.

I am using openlayer

Thanks
Manoj

michael.peden’s picture

Hi,

I have an issue that is identical to the one described here. For me, this issue was was caused by the ZEN theme and the creation of a ZEN sub theme. Specifically, the use of the HTML5 shim in the ZEN theme that is used by default according to the html.tpl.php file in the templates.

Specifically the call of :

<!--[if lt IE 9]>
  <script src="<?php print $base_path . $path_to_zen; ?>/js/html5-respond.js"></script>
<![endif]-->

My solution was to comment out the HTML5 Shiv pre3.5 and download a current version of the HTML5 Shiv. And then, add the offending olv tags (i.e. olv:rect etc...) to the reSkip variable. There was much rejoicing when the titles began to display properly.

Cheers,

MTP

abtm’s picture

Hi leschekfm, did you ever find a solution for this problem? I created a map a couple of days ago at http://www.homehippo.ug/find-property-by-map. Someone told me today that the map didn't work. I suspected the browser must be IE and did a few tests. I found out that I had the exact problem you described. Was wondering if you have resolved it in some way?

leschekfm’s picture

Nope, never resolved this issue. My solution for the future will be to use leaflet instead of openlayers ;)

rob c’s picture

Title: Marker label is missing in IE7 / IE8 » Marker label is missing in Internet Explorer 7 / 8

I have a (possibly) related similar issue with 'custom markers' not showing up at all. After some ivestigation it looks like they are not even rendered at all. (i only see tiles/navigation in the source, and that's also only visible in the browser). (while default markers work just fine)

Updating title for search engines + drupal search (search on d.o. is limited to minimal 3 words, so searching for IE won't work at all).

ps. Check here for 'firebug' / debugging Internet Explorer a bit. (Also works in 8)

Jānis’s picture

Issue summary: View changes

Thanks to michael.peden for giving me an idea what to look for. In my case, it was Modernizr 2.6.2 that was the cause. Updating it to 2.7.1 solved the label problem.