Web Components Binding Multiple Data Sources
In the Ignite UI for Web Components map, you can add multiple geographic series objects to overlay custom data sources with geo-spacial data. For example, IgcGeographicSymbolSeriesComponent
for plotting geographic locations of airports, the IgcGeographicPolylineSeriesComponent
for plotting flights between airports, and 2nd IgcGeographicPolylineSeriesComponent
for plotting gridlines of major geographic coordinates.
Web Components Binding Multiple Data Sources Example
This topic takes you step-by-step towards displaying multiple geographic series that will plot following geo-spatial data:
IgcGeographicSymbolSeriesComponent
– displays locations of major airportsIgcGeographicPolylineSeriesComponent
– displays flights between airportsIgcGeographicPolylineSeriesComponent
– displays gridlines of major coordinates
You can use geographic series in this or other combinations to plot desired data.
Creating Data Sources
Create data sources for all geographic series that you want to display in the Ignite UI for Web Components map. For example, you can the use WorldConnections script.
Overlaying Flights
Create first IgcGeographicPolylineSeriesComponent
object with flight connections between major airports and add it to the Series collection of the Ignite UI for Web Components map.
Overlaying Gridlines
Create second IgcGeographicPolylineSeriesComponent
object with geographic gridlines and add it to the Series collection of the Ignite UI for Web Components map.
Overlaying Airports
Create IgcGeographicSymbolSeriesComponent
object with airport points and add it to the Series collection of the geographic Ignite UI for Web Components map.
Summary
For your convenience, all above code snippets are combined into one code block below that you can easily copy to your project.