此处映射javascript api 3.1和Internet Explorer支持

时间:2019-08-12 16:33:16

标签: here-api

试图获取带有图钉的地图以显示在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的有效示例吗?

1 个答案:

答案 0 :(得分:0)

为了在旧版浏览器上具有有效的地图,您需要包括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和示例Change map style at runtime在旧版浏览器上无法使用,因为它们需要WebGL渲染引擎来进行矢量渲染。