Nokia HERE maps: Trigger Public Transport through code

亡梦爱人 提交于 2019-12-12 01:09:40

问题


I want to trigger 'Public Transport' toggle button's action through code.

I have searched everywhere but I couldn't find any resource on this.


回答1:


You can set the baseMapType of the Display using the standard setter as shown:

map.set("baseMapType", nokia.maps.map.Display.SMART_PT)

And then you can reset to normal by,

map.set("baseMapType", nokia.maps.map.Display.NORMAL)


来源:https://stackoverflow.com/questions/20103764/nokia-here-maps-trigger-public-transport-through-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!