Showing narrative in a <div> instead of over the map

2 posts / 0 new
Last post
dearmasmichael
Showing narrative in a <div> instead of over the map

Is there a way to show the narrative for directions on a <div> to avoid taking so much room from the map for this.

 

I'm thinking of something like this:

narrativeControl.addTo(div_id_or_object)

instead of:

narrativeControl.addTo(map)

Also, when the narrative shows over the map, I don't see how I could specify the size of the container object or a way to collapse it.

Thanks,

Michael


MQBrianCoakley
There is no default method to
There is no default method to display the narrative outside the map. But you can handle the route response outside the SDK to put it anywhere else you need to. You can use the route callback function to handle that.