此处映射javascript api 3.1和Internet Explorer支持 [英] Here Maps javascript api 3.1 and Internet Explorer support
问题描述
试图获取带有图钉的地图以显示在Internet Explorer中,该页面声称该图支持
Trying to get a map with pins to display in internet explorer which this page claims to support https://developer.here.com/documentation/maps/topics/overview.html but none of the examples in the developer documentation seem to run in 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
Here is an example map that won't load https://developer.here.com/api-explorer/maps-js/maps/interactive-basemap
有人在IE中有3.1 API的有效示例吗?
Does anyone have any working examples of the 3.1 api in IE?
推荐答案
为了在旧版浏览器上具有有效的地图,您需要包括mapsjs-core-legacy.js程序包. 请参见 https://developer.here.com/documentation/maps/topics /overview.html#overview__modules
In order to have working map on legacy browsers, you need to include mapsjs-core-legacy.js package. See 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
Also you need to set engineType parameter when creating map object:
engineType: H.map.render.RenderEngine.EngineType.P2D
See https://developer.here.com/documentation/maps/topics_api/h-map-options.html
很遗憾,您附加的示例(交互式基础地图)以及示例更改地图样式在运行时将无法在旧版浏览器上运行,因为它们需要WebGL渲染引擎来进行矢量渲染.
Unfortunately the example you attached (Interactive base map) as well as example Change map style at runtime won't work on legacy browsers as they need WebGL rendering engine for vector rendering.
这篇关于此处映射javascript api 3.1和Internet Explorer支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!