Example of MarkerTemplate in ASP.NET Core Maps Control

Maps
Features
MarkerTemplate

This sample indicates the temperature of various cities of Australia in marker templates.

Weather clear

Perth:31.6°C

Weather cloud

Adelaide:28.5°C

Weather clear

Townsville:31.3°C

Weather rain

Sydney:26.4°C

Weather clear

Alice Springs:36.4°C

Weather cloud

Brisbane:29.1°C

Australia cities weather detail

In this example, you can see how to place a template as a marker in the map. Any custom HTML elements can be used as a marker. You can use the palette property in the shapeSettings to apply desired fill colors for the shapes.


Injecting Module

Maps component features are segregated into individual feature-wise modules. To use a marker template, inject the Marker module using the Maps.Inject(Marker) method.

Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab