[OpenLayers-Users] DOCTYPE declaration breaks IE (all versions)

David Martin David at itbeyond.com.au
Fri Oct 17 02:17:17 EDT 2008


Hi all,

 

I have been working on a very strange issue that has taken me a few days
to find. The issue is I have found it and now have no idea how I can fix
it. It is reproducible and I have published two pages one with and one
without the error. You need to use IE to find it as FF, Opera and others
seem to work.

 

The application uses OL to output Google driving directions using a
vector layer and allows users to select various base layers and/or
select from a number of poi wms layers. 

 

The problem is that with IE when a your switch layers the extent bounds
of the OL changes and moves the vector line to the wrong spot. Now this
only happens when you specify an XHTML doctype in the header of the
page. 

 

The examples
http://www.exploroz.com/Places/OLDirections_DT.aspx?from=Perth&to=Albany
once this is loaded change the To address to Perth and hit go then move
across the various layers you will see the extents on the Google layers
goes strange and the DD line is in the wrong place. If it does not fail
try change the to address to something else like Adelaide and try again.

 

The example without the XHTML doc type and exactly the same code is
http://www.exploroz.com/Places/Directions_DT.aspx?from=Perth&to=Albany
you can hit this all day and it will not fail.  However some of the
style elements will not display correctly.

 

Any help or ideas?

 

Regards
David Martin
Managing Director
I.T. Beyond Pty Ltd

Postal:

PO BOX 967
HILLARYS WA 6923

Ph:

(08) 9403 3737 

Mobile:

0417 677 275 

Fax:

(08) 9403 3738

Skype:

itbeyond_david

________________________________

Check out our websites: www.ExplorOz.com <http://www.exploroz.com/>  and
www.itbeyond.com.au <http://www.itbeyond.com.au/> 

________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081017/81948442/attachment.html


More information about the Users mailing list