How to Add Annotations to the React Maps Component
YouTube Viewers YouTube Viewers
30K subscribers
116 views
0

 Published On Apr 18, 2024

Learn how easily you can add an annotation to Syncfusion React Maps and customize it with various built-in options. Annotations are used to mark specific areas of interest on a map with texts, shapes, or images.

Any number of annotations can be added to the Maps component. To enable Annotations, import the Annotations module from the Syncfusion EJ2 React Maps package and inject it into the Maps component. Using the content property, text content, ID of an element, or an HTML string can be specified to render a new HTML element.

Annotations can be placed anywhere on a Map by specifying pixel or percentage values for the x and y properties. They can be aligned using the horizontalAlignment and verticalAlignment properties. The possible values are Center, Far, Near, and None. Multiple annotations can be added to a Map using the annotations property in an array, which can be customized.

Using the Maps component, you can visualize the Earth's surface and display static or interactive regions, zones, boundaries, or any geographic area on the land. The Syncfusion React Maps component offers a rich set of features, including markers, navigation lines, bubbles, zooming, panning, and drill-down functionality, allowing users to easily explore interactive zones.

Tutorial videos: https://www.syncfusion.com/tutorial-v...

Download the example from GitHub:
https://github.com/SyncfusionExamples...

TRIAL LICENSE KEY
---------------------- 
If you need a trial license key, start your React trial from https://www.syncfusion.com/account/ma... under your Syncfusion account. Then, you can obtain your trial license key from the downloads page.

Check your eligibility for a free license for all Essential Studio products on our Community License page: https://www.syncfusion.com/products/c...

BOOKMARK DETAILS
----------------------- 
[00:00] Introduction
[01:06] Add annotations
[02:34] Align annotations
[03:00] Position annotations
[03:23] Add image annotations
[03:58] Position image annotations

REACT MAPS
--------------
Product overview: https://www.syncfusion.com/react-comp...
Examples: https://ej2.syncfusion.com/react/demo...
Documentation: https://ej2.syncfusion.com/react/docu...
Download free trial: https://www.syncfusion.com/downloads/...
npmjs package: https://www.npmjs.com/package/@syncfu...

SUBSCRIBE
-------------
Syncfusion on YouTube:    / syncfusioninc    
Sign up to receive email updates: https://www.syncfusion.com/account/em...

SOCIAL COMMUNITIES
-----------------------------
Facebook:   / syncfusion    
X:   / syncfusion   
LinkedIn:   / syncfusion  
Instagram:   / syncfusionofficial  

#react #maps #annotations

show more

Share/Embed