根据此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
更多推荐
发布评论