【发布时间】:2013-05-23 18:19:02
【问题描述】:
我有这张地图,作为this other question 的答案。它使用 geocodezip 并且运行良好,但在 Internet Explorer 中无法运行。你能建议我任何解决方案吗?
这是它在其他浏览器中的外观
这是它在 Internet Explorer 中的外观
非常感谢
【问题讨论】:
-
你只需要缩小。找到一种将缩放编码到固定位置的方法。
-
不,这是 IE 非标准行为的另一个问题。 geoxml3 在这一行
(new DOMParser()).parseFromString(str, 'text/xml');上出现语法错误,至少在某些版本中...... -
如果它有帮助我没有在 ie10 中遇到那个错误,我只是缩小了
-
在这种情况下(消息),您应该将以下行添加到您的文档的头部。如果您提供 text/html MIME 类型,该方法应该可以工作。 var string = 'content'; var doc = new DOMParser().parseFromString("
", "text/xml");返回 doc.documentElement.localName == "y"; -
在 IE8 中出现解析错误:
reason "An invalid character was found in text content. " String,srcText " <description><![CDATA[Sucursales en la rep" String
标签: internet-explorer google-maps kml geoxml3