如何更改SAP Visual Business GeoMap中的HERE地图类型?(How to change HERE maps type in SAP Visual Business GeoMap

编程入门 行业动态 更新时间:2024-10-22 16:46:41
如何更改SAP Visual Business GeoMap中的HERE地图类型?(How to change HERE maps type in SAP Visual Business GeoMap?)

根据此Map Provider配置更改 ,我使用此配置在GeoMap中添加HERE映射:

var oMapConfig = { "MapProvider": [{ "name": "HEREMAPS", "type": "HERETerrainMap", "description": "", "tileX": "256", "tileY": "256", "maxLOD": "20", "copyright": "Tiles Courtesy of HERE Maps", "Source": [{ "id": "s1", "url": "https://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/reduced.day/{LOD}/{X}/{Y}/256/png8?app_id=MY_ID&app_code=MY_CODE" }, { "id": "s2", "url": "https://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/reduced.day/{LOD}/{X}/{Y}/256/png8?app_id=MY_ID&app_code=MY_CODE" } ] }], "MapLayerStacks": [{ "name": "DEFAULT", "MapLayer": { "name": "layer1", "refMapProvider": "HEREMAPS", "opacity": "1.0", "colBkgnd": "RGB(255,255,255)" } }] }; this.oMap.setMapConfiguration(oMapConfig); this.oMap.setRefMapLayerStack("DEFAULT");

但我的地图是黑白风格:

我想要的是标准地图:

在配置HERE(以前的诺基亚,NAVTEQ)地图中 ,提供了新的服务器URL,我试过这个,但没有工作。

{ "id": "s1", "url": http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?app_id=YOUR_APP_ID&app_code=YOUR_APP_CODE" }, { "id": "s2", "url": "http://2.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?app_id=MY_APP_ID&app_code=MY_APP_CODE" }

并且未能在GeoMap的setMapConfiguration中找到MapProvider配置文档

According to this Map Provider Configuration Changes, I use this configuration to add HERE maps in GeoMap:

var oMapConfig = { "MapProvider": [{ "name": "HEREMAPS", "type": "HERETerrainMap", "description": "", "tileX": "256", "tileY": "256", "maxLOD": "20", "copyright": "Tiles Courtesy of HERE Maps", "Source": [{ "id": "s1", "url": "https://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/reduced.day/{LOD}/{X}/{Y}/256/png8?app_id=MY_ID&app_code=MY_CODE" }, { "id": "s2", "url": "https://2.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/reduced.day/{LOD}/{X}/{Y}/256/png8?app_id=MY_ID&app_code=MY_CODE" } ] }], "MapLayerStacks": [{ "name": "DEFAULT", "MapLayer": { "name": "layer1", "refMapProvider": "HEREMAPS", "opacity": "1.0", "colBkgnd": "RGB(255,255,255)" } }] }; this.oMap.setMapConfiguration(oMapConfig); this.oMap.setRefMapLayerStack("DEFAULT");

But my map is in black and white style:

What I want is standard map:

In Configuring HERE (formerly Nokia, NAVTEQ) maps, new server URL is provided, I've tried this, but not working.

{ "id": "s1", "url": http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?app_id=YOUR_APP_ID&app_code=YOUR_APP_CODE" }, { "id": "s2", "url": "http://2.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/{LOD}/{X}/{Y}/256/png?app_id=MY_APP_ID&app_code=MY_APP_CODE" }

And failed to find MapProvider configuration documentation in setMapConfiguration of GeoMap

最满意答案

只需在地图网址normal.day更改为normal.day ,您就会获得彩色地图:)

编辑:

有关详细API,请参阅https://developer.here.com/documentation/map-tile/topics/examples.html

Just change reduced.day to normal.day in your map URL, and you'll get colored map:)

edit:

Please refer to https://developer.here.com/documentation/map-tile/topics/examples.html for detailed APIs

更多推荐

本文发布于:2023-07-24 00:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1239219.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何更改   类型   地图   Visual   SAP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!