Comments (11)
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.
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.
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.
I got the same problem ,how can i do?
Original comment by [email protected]
on 16 Apr 2010 at 12:34
from geoxml3.
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.
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.
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.
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.
fixed in network_link branch.
Original comment by geocodezip
on 22 Sep 2010 at 5:44
- Changed state: Fixed
from geoxml3.
[deleted comment]
from geoxml3.
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)
- docs array, first element gets clobbered on each parse. Does not save one doc per Array element HOT 5
- failedParse callback not being called HOT 7
- Uncaught InvalidStateError: Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MimeType cannot be overridden when the state is LOADING or DONE. HOT 4
- Placemarkers not visible HOT 3
- No marker property available in afterParse HOT 3
- Parsing does not support namespace HOT 5
- Points moved in new egeoxml.js version HOT 3
- kmz branch r123 - sort geo.docs alphabetically by url HOT 4
- Firefox - Can't find icons.png files HOT 1
- docs.indexes not loaded until function calling geo.parse finish HOT 2
- character encoding issues in kmz branch
- issue 24 resolution still not in kmz branch HOT 1
- google.maps.Polyline cannot be removed from map after KML parse HOT 3
- hideDocument executes properly, but map doesn't update HOT 2
- Issue when toggling hide/show for multiple docs loaded with parseKmlString HOT 7
- Patch for /branches/kmz/ZipFile.complete.js HOT 1
- Cursor/mouseover issue with polygons in firefox 39.0 HOT 3
- Can not load and show a local KML file HOT 2
- Add suppressDirections option to kmz branch HOT 2
- "geoXML3 is not defined" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoxml3.