Example of Navigation Lines in ASP.NET MVC Maps Control

Maps
Features
Navigation Lines

This sample illustrates the sea routes between various cities for shipping.

ALTAMIRA
HOUSTON
PANAMA CITY
TAMPA
PROGRESO
Shipping sea route between various cities

In this example, you can see how to render lines between two points in map. You can use dashArray, width, and color properties to customize the appearance of the navigation lines.


Injecting Module

Maps component features are segregated into individual feature-wise modules. To use navigation lines, you need to inject NavigationLine module using the Maps.Inject(NavigationLine) method.

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