A quick-start project that contains code to add and customize legends in the Syncfusion React Maps component. This project also contains code to configure a few of the legend’s customizations, like changing the legend mode, position, alignment, shape and applying color from the datasource.
Refer to the following documentation to learn about the React Maps component: https://ej2.syncfusion.com/react/documentation/maps/legend
Check out this online example of the React Maps component: https://ej2.syncfusion.com/react/demos/#/material/maps/legend
Make sure that you have the compatible versions of Visual Studio Code and NodeJS or later version in your machine before starting to work on this project.
To run this application, you need to first clone the how-to-add-legends-to-the-react-maps-component
repository and then open it in Visual Studio Code. Now, simply build and run your project to view the output.