Skip to content

Commit

Permalink
Started Working On Map Routes�
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy08 committed Jan 26, 2023
1 parent 54685b8 commit ec0d3c6
Showing 1 changed file with 74 additions and 44 deletions.
118 changes: 74 additions & 44 deletions src/app/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export class MapComponent {
},

mapView: {
maxZoom: 30,
projection: {
name: 'Orthographic',
rotation: [60, -30],
Expand Down Expand Up @@ -148,6 +147,7 @@ export class MapComponent {
},
},
series: [
// Globe Latitudes and Longitudes Lines
{
id: 'graticule',
type: 'mapline',
Expand All @@ -160,6 +160,7 @@ export class MapComponent {
enabled: false,
},
},
// The Official Data Series on the Globe
{
data: this.mapData,
type: 'map',
Expand All @@ -181,54 +182,83 @@ export class MapComponent {
enabled: true,
},
},
// PinPoints 📍 on the Globe
{
data:[{
name: 'London',
lat: 51.507222,
lon: -0.1275
}, {
name: 'Birmingham',
lat: 52.483056,
lon: -1.893611
}, {
name: 'Leeds',
lat: 53.799722,
lon: -1.549167
}, {
name: 'Glasgow',
lat: 55.858,
lon: -4.259
}, {
name: 'Sheffield',
lat: 53.383611,
lon: -1.466944
}, {
name: 'Liverpool',
lat: 53.4,
lon: -3
}, {
name: 'Bristol',
lat: 51.45,
lon: -2.583333
}, {
name: 'Belfast',
lat: 54.597,
lon: -5.93
}, {
name: 'Lerwick',
lat: 60.155,
lon: -1.145,
dataLabels: {
data: [
{
name: 'London',
lat: 51.507222,
lon: -0.1275,
},
{
name: 'Birmingham',
lat: 52.483056,
lon: -1.893611,
},
{
name: 'Leeds',
lat: 53.799722,
lon: -1.549167,
},
{
name: 'Glasgow',
lat: 55.858,
lon: -4.259,
},
{
name: 'Sheffield',
lat: 53.383611,
lon: -1.466944,
},
{
name: 'Liverpool',
lat: 53.4,
lon: -3,
},
{
name: 'Bristol',
lat: 51.45,
lon: -2.583333,
},
{
name: 'Belfast',
lat: 54.597,
lon: -5.93,
},
{
name: 'Lerwick',
lat: 60.155,
lon: -1.145,
dataLabels: {
align: 'left',
x: 5,
verticalAlign: 'middle'
}
}],
type:'mappoint'

}
verticalAlign: 'middle',
},
},
],
type: 'mappoint',
},
// MapLine Between two Locations
{
lineWidth:2,
color:'blue',
type: 'mapline',
data: [
{
geometry: {
type: 'LineString',
coordinates: [
[4.9, 53.38], // Amsterdam
[-118.24, 34.05], // Los Angeles

],
},
},
],
},
],
};

/*
// Second Chart
chartOptions: Highcharts.Options = {
Expand Down

1 comment on commit ec0d3c6

@vercel
Copy link

@vercel vercel bot commented on ec0d3c6 Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mfe-map – ./

mfe-map-git-main-eddy08.vercel.app
mfe-map-eddy08.vercel.app
mfe-map.vercel.app

Please sign in to comment.