Example of Annotations in ASP.NET MVC Maps Control
This sample depicts the facts about Africa in an annotation. Africa shape is filled with gradient color.
Africa
Facts about Africa
- Africa is the second largest and second most populated continent in the world.
- Africa has 54 sovereign states and 10 non-sovereign territories.
- Algeria is the largest country in Africa, where as Mayotte is the smallest.
Source:
en.wikipedia.org
Injecting Module
In this example, you can see how to place a desired HTML element at desired location in the maps. Any number of annotation can be placed on the maps. In this sample, the gradient fill color has been applied for the shape.
Injecting Module
Maps component features are segregated into individual feature-wise modules. To use an annotation, inject the MAnnotations
module using the Maps.Inject(Annotations)
method.