Nagendra Rao
Nagendra Rao

Reputation: 7152

Nokia HERE maps: Trigger Public Transport through code

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

enter image description here

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

Upvotes: 0

Views: 158

Answers (1)

Jason Fox
Jason Fox

Reputation: 5290

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)

Upvotes: 1

Related Questions