Select to view content in your preferred language

Directions Component Printing Does not display map

78
1
Sunday
GeoGalvanic
Occasional Contributor

Hi, I'm trying to test out the new beta feature with printable directions in the directions component.

 

I've haven't been able to get the sample on the directions component reference to work because I don't have a developer account handy to create an API key with, so I'm not entirely certain if my experience is outside what is intended.

 

When I print with the directions component it attempts to print the entire web pages with the directions at the bottom, rather than just the map. This is undesirable as it is trying to print navigation headers and other UI elements that would be better off not inside the print. I've noticed that it does make a request to print service to get an image of the map, like the old WAB directions widget used to do. Not only are there undesirable components, but the map itself is not displayed on the printable page. The end result is an empty web page with a bunch of floating UI elements followed by the list of directions.

 

Am I missing something, or is this the current behavior of the widget? Are there changes already planned for the next release to add in map image functionality?

0 Kudos
1 Reply
Noah-Sager
Esri Regular Contributor

Hi @GeoGalvanic, thanks for posting your question here. If using the ArcGIS routing service, this does require authentication. API Keys are the recommended way to consume location services, such as routing.

Currently, the expected result is a printed list of turn-by-turn directions. Here is a screenshot from the release notes: https://developers.arcgis.com/javascript/latest/release-notes/#directions-printing-beta

Sine we released this functionality in beta, we do anticipate future enhancements and upgrades, such as adding an image of the map/route, at future releases.

0 Kudos