Skip to content

Commit

Permalink
Added support for βœ…πŸŒ map points
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy08 committed Jan 25, 2023
1 parent 9006c3d commit 54685b8
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion src/app/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class MapComponent {

tooltip: {
formatter: function () {
if (this.point.name) {
if (this.point.name && this.point.value) {
return `${this.point.name}: ${this.point.value}`;
} else {
return false; // now you don't
Expand Down Expand Up @@ -181,6 +181,52 @@ export class MapComponent {
enabled: true,
},
},
{
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'

}
],
};
/*
Expand Down

1 comment on commit 54685b8

@vercel
Copy link

@vercel vercel bot commented on 54685b8 Jan 25, 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-eddy08.vercel.app
mfe-map.vercel.app
mfe-map-git-main-eddy08.vercel.app

Please sign in to comment.