This sample illustrates the print feature in Maps. By clicking the Print button, you can print the maps directly from the browser.
In this example, you can see how to render and configure the print functionality. The rendered maps can
be printed directly from the browser by calling the print
method when
allowPrint
is set as true. Also this sample visualizes the State-wise US population
in the year 2010.
Injecting Module
Maps component features are segregated into individual feature-wise modules. To use a legend, inject
the Legend module using the Legend
module into the services
.To make use of the print support, we need to
inject the Maps
module using the Print
module into the services
.
More information on print can be found in this documentation section.