[ka-Map-users] xmloverlay/IE workaround?
Adrian Black
ablack at spiretech.com
Tue Feb 27 12:15:17 EST 2007
Never mind. I overlooked adding xhr.js, excanvas.js, and
wz_jsgraphics.js when I imported kaXmlOverlay.js...
Adrian Black wrote:
> 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:
>
> http://bugzilla.maptools.org/show_bug.cgi?id=1605
>
> 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:
>
>
> <snip>
> function myExtentChanged( eventID, extents ) {
> updateLinkToView();
>
> minx = extents[0];
> miny = extents[1];
> maxx = extents[2];
> maxy = extents[3];
> scale = myKaMap.getCurrentScale();
> if (window.myXmlOverlay) {
> myXmlOverlay.remove();
> }
> myXmlOverlay = new kaXmlOverlay(myKaMap, 250);
> request="/kamaptest.php?minx=" + minx + "&maxx=" + maxx + "&miny=" +
> miny + "&maxy=" + maxy + "&scale=" + scale;
> myXmlOverlay.loadXml(request);
> }
> <snip>
>
> Product of kamaptest.php at the default extent looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <overlay>
> <point x="-121.9536" y="37.3779" id="1">
> <label>Test</label>
> <symbol shape="bullet" size="10" opacity="1" color="#0F0" />
> </point>
> <point x="-121.2083" y="38.1398" id="2">
> <label>Test</label>
> <symbol shape="bullet" size="10" opacity="1" color="#0F0" />
> </point>
> </overlay>
>
> Thanks for any help...
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
More information about the ka-Map-users
mailing list