With IE7 adding a point on the map with the editing toolbar results in the added point being
shown with an horizontal offset.

The OpenLayers example [1] works fine so must have to do with the stylesheet used by drupal.
IE8 works fine.

[1] http://openlayers.org/dev/examples/editingtoolbar.html

Comments

strk’s picture

This may be related: http://drupal.org/node/613002

zzolo’s picture

As pointed to from strk, there is this ticket (with little to no information) in OpenLayers: http://trac.openlayers.org/ticket/2080 It doesn't really help much at all. :(

strk’s picture

This other issue seems to be the same: http://drupal.org/node/717624

strk’s picture

I'm using Garland theme also

strk’s picture

Interestingi enough, when using the "Chameleon" theme, Firefox also breaks :/
_but_ IE7 works better.

Oh well.... I love web development

strk’s picture

With "Zen" theme, all of (IE7, Chrome, Firefox) work

zzolo’s picture

Title: IE7 vector editing offset » CSS causes vector editing offset in IE7

So, this was discussed in http://drupal.org/node/717624

Note that it is caused by specific styles in the Garland theme. What needs to happen:

1) Define what is the actual cause. Meaning what sort of style causes this.
2) Document this in an obvious place.
3) Try to provide a fix by overriding CSS with module. This is dependent on #1

zzolo’s picture

Priority: Normal » Critical
tmcw’s picture

Priority: Critical » Normal

This is not critical. It's nearly out of scope for the module, being a problem between a theme and an external library and a bad browser.

MikeNGarrett’s picture

Category: bug » support

I had this issue and it drove me crazy-pants for a number of days. Here's what I found:

Make sure your doctype is correct. I used:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>">

DO NOT include the following line:
xmlns:olv="urn:schemas-microsoft-com:vml"

DO NOT include the following line in your code:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
I'm not sure where we found this, but it just breaks things.

Remember to either compress your css or have less than 31 css files.

zzolo’s picture

Component: Behaviors » OL API
Status: Active » Closed (works as designed)