Here Maps javascript api 3.1 和 Internet Explorer 支持

Here Maps javascript api 3.1 and Internet Explorer support

尝试获取带有图钉的地图以在 Internet Explorer 中显示,此页面声称支持 https://developer.here.com/documentation/maps/topics/overview.html 但开发人员文档中的 none 示例似乎 运行 在 IE 中11

Table 来自 url

+===============================+==============================+
|        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

有人有任何 3.1 api 在 IE 中的工作示例吗?

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

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

很遗憾,您所附的示例(Interactive base map) as well as example Change map style at runtime 不适用于旧版浏览器,因为它们需要 WebGL 渲染引擎来进行矢量渲染。