Git Product home page Git Product logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
This ia also occuring with IE8 under Windows 7. It also causes the map window 
to jump
out to zoom 3 and show the whole world regardless of the centre and zoom 
options the
map was created with.

Another example of the problem:

http://vk5hz.com/sagrn/map/
http://vk5hz.com/sagrn/map/?nogeo

Original comment by [email protected] on 18 Feb 2010 at 12:45

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Declare a global variable
var xhrText;

Down in the http GET section below // Returned successfully assign xhrText 
xhrText = xhrFetcher.responseText;

Up in the render section, after groundNodes is assigned, test it
if(groundNodes.length === 0)
{
  var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async = false;
  xmlDoc.loadXML(xhrText);
  groundNodes = xmlDoc.getElementsByTagName('GroundOverlay');
}

That should take care of it.

John Huddleston

Original comment by [email protected] on 9 Mar 2010 at 1:01

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Hi,
still no success, you only get js error in Firefox:

ActiveXObject is not defined :-(

Original comment by [email protected] on 10 Mar 2010 at 6:37

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
I got the same problem ,how can i do?

Original comment by [email protected] on 16 Apr 2010 at 12:34

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Use the line:
var xmlDoc = getXmlDomObject();

Use the function defined here:

function getXmlDomObject()
{
  if (window.ActiveXObject)
  {
var axVersions=
["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSX
ML2.D
OMDocument.3.0","MSXML2.DOMDocument","Microsoft.XMLDOM"];
    for(var i=0,imax=axVersions.length;i<imax;i++)
    try{
      var xmldomdoc=new ActiveXObject(axVersions[i]);
      return xmldomdoc;
    }
    catch(ex){/* Do nothing */}
  }
  else {
    try{
      var xmldomdoc = new DOMParser();
      return xmldomdoc;
    }
    catch(ex){/* Do nothing */}
  }
  return null;
}

Original comment by [email protected] on 22 Apr 2010 at 5:27

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Here is another way by adding the tagName
var styleNodes = theDomParser('Style',responseXML);
var placemarkNodes = theDomParser('Placemark',responseXML);
var groundNodes = theDomParser('GroundOverlay',responseXML);

where the code for theDomparser is:

theDomParser = function(tagName,responseXML) {
    var domNodes = responseXML.getElementsByTagName(tagName);
    if (domNodes.length === 0) {
        if (window.DOMParser) {
            var dParser = new DOMParser();
            xmlDoc = dParser.parseFromString(xhrText, "text/xml");
            domNodes = xmlDoc.getElementsByTagName(tagName);
        }
        else {
            var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
            xmlDoc.async = false;
            xmlDoc.loadXML(xhrText);
            domNodes = xmlDoc.getElementsByTagName(tagName);
        }
        return domNodes;
    }
}

If you still have trouble with a browser not in theDomParser, see my last post.

John Huddleston

Original comment by [email protected] on 22 Apr 2010 at 6:16

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Where exactly should I put this code? Inside of the geoxml3.js file? If so, do 
I need to alter my geoxml.parse('file.kml'); code at all? Thanks.

Original comment by [email protected] on 29 Jun 2010 at 12:10

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Hi, sorry I don't understand comment 2,5,6 Is this a solution for working 
geoxml3 in IE. I am trying it and still get the same output - nothing in IE :-(

Original comment by [email protected] on 21 Jul 2010 at 10:53

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
fixed in network_link branch.

Original comment by geocodezip on 22 Sep 2010 at 5:44

  • Changed state: Fixed

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
[deleted comment]

from geoxml3.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 16, 2024
Hi, I don't follow comments 2,5,6  where should this codes be placed?

Original comment by [email protected] on 26 May 2015 at 6:28

from geoxml3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.