Example of undefined in React Maps Component

/
/
ExportMaps

This sample illustrates the exporting feature in Maps. You can modify the map type to geometric or OSM using the Map type dropdown list in this sample. By clicking the Export button, you can export the map in PNG, JPEG, SVG or in PDF formats.

More Details...

Loading....
Description

In this example, you can see how to render and configure the export functionality. The rendered map can be exported as either JPEG, PNG, SVG and PDF formats. Also this sample visualizes the locations of the wonders in the world using markers. Export functionality is done by export method when allowImageExport and allowPdfExport is set as true.

Injecting Module

Maps component features are segregated into individual feature-wise modules. To use a marker, inject the Marker module using the Marker module into the services . To make use of the export support, we need to inject the Maps module using the ImageExport and PdfExport modules into the services .

More information on export can be found in this documentation section.