【问题标题】:Here Maps javascript api 3.1 and Internet Explorer support这里 Maps javascript api 3.1 和 Internet Explorer 支持
【发布时间】:2019-08-12 16:33:16
【问题描述】:

试图在 Internet Explorer 中显示带有引脚的地图,该页面声称支持 https://developer.here.com/documentation/maps/topics/overview.html,但开发人员文档中的示例似乎都没有在 IE 11 中运行

来自网址的表格

+===============================+==============================+
|        Support Level          |           Browser            |
+===============================+==============================+
| Supported with optimizations: | Edge 17+                     |
+-------------------------------+------------------------------+
|                               | Firefox (latest)             |
+-------------------------------+------------------------------+
|                               | Google Chrome (latest)       |
+-------------------------------+------------------------------+
|                               | Apple Safari 11+             |
+-------------------------------+------------------------------+
| Legacy support:               | Internet Explorer 9, 10, 11  |
+-------------------------------+------------------------------+
|                               | iOS WebView                  |
+-------------------------------+------------------------------+
| Not supported:                | Opera                        |
+-------------------------------+------------------------------+
|                               |  Internet Explorer < 9       |
+-------------------------------+------------------------------+

这是一个无法加载https://developer.here.com/api-explorer/maps-js/maps/interactive-basemap的示例地图

谁有 IE 中 3.1 api 的工作示例?

【问题讨论】:

标签: here-api


【解决方案1】:

为了在旧版浏览器上使用地图,您需要包含 mapsjs-core-legacy.js 包。 见https://developer.here.com/documentation/maps/topics/overview.html#overview__modules

创建地图对象时还需要设置engineType参数: engineType: H.map.render.RenderEngine.EngineType.P2Dhttps://developer.here.com/documentation/maps/topics_api/h-map-options.html

很遗憾,您附加的示例 (Interactive base map) 以及示例 Change map style at runtime 无法在旧版浏览器上运行,因为它们需要 WebGL 渲染引擎进行矢量渲染。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-02-18
  • 2014-11-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-26
  • 2011-05-27
相关资源
最近更新 更多