Angular Map
The Ignite UI for Angular map component allows you to display data that contains geographic locations from view models or geo-spatial data loaded from shape files on geographic imagery maps.
Demo
The map component allows you to render geographic imagery from Bing Maps™, and Open Street Maps. The map provides plotting of tens of thousands of data points, and updates them every few milliseconds so that the control can handle your real-time feeds.
The map's Series property is used to support rendering an unlimited number of geographic series. This property is a collection of geographic series objects and any type of geographic series can be added to it. For example, IgxGeographicSymbolSeriesComponent
can be added for plotting geographic locations such as cities and the IgxGeographicPolylineSeriesComponent
for plotting connections (e.g. roads) between these geographic locations.
The map provides customizable navigation behaviors for navigating map content using mouse, keyboard, or code-behind.
Dependencies
To use the geographic map component, you need to first install these packages:
- npm install --save igniteui-angular-core
- npm install --save igniteui-angular-charts
- npm install --save igniteui-angular-maps
Component Modules
The IgxGeographicMapComponent
requires the following modules:
// app.module.ts
import { IgxMapModule } from "igniteui-angular-maps";
@NgModule({
imports: [
// ...
IgxMapModule,
// ...
]
})
export class AppModule {}
Usage
Now that the map module is imported, next step is to create geographic map. The following code demonstrates how to do this and enable zooming in the map.