[ka-Map-users] xmloverlay/IE workaround?

Adrian Black ablack at spiretech.com
Mon Feb 26 20:37:07 EST 2007

I'm having trouble getting an XmlOverlay working in IE6. The error 
appears at line 1545 in kaXmlOverlay.js - "object does not support this 
property or method". It looks like this bug to me:


Same page works fine in Firefox. Anybody know of a workaround? Ditching 
IE is not an option, unfortunately.

FWIW I'm using the demo kaExplorer package, just modified Startup.js 
with the following:

function myExtentChanged( eventID, extents ) {

  minx = extents[0];
  miny = extents[1];
  maxx = extents[2];
  maxy = extents[3];
  scale = myKaMap.getCurrentScale();
  if (window.myXmlOverlay) {
  myXmlOverlay = new kaXmlOverlay(myKaMap, 250);
  request="/kamaptest.php?minx=" + minx + "&maxx=" + maxx + "&miny=" + 
miny + "&maxy=" + maxy + "&scale=" + scale;

Product of kamaptest.php at the default extent looks like this:

<?xml version="1.0" encoding="UTF-8"?>
        <point x="-121.9536" y="37.3779" id="1">
            <symbol shape="bullet" size="10" opacity="1" color="#0F0" />
        <point x="-121.2083" y="38.1398" id="2">
            <symbol shape="bullet" size="10" opacity="1" color="#0F0" />

Thanks for any help...

More information about the ka-Map-users mailing list