Skip to content

Commit

Permalink
Removed Caption from The Widget 🌎
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy08 committed Feb 18, 2023
1 parent bd58dcf commit e6601e4
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/app/map/map.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class MapComponent {

Globe: any;

updateFlag:boolean=false;
updateFlag: boolean = false;
chartCallback: Highcharts.ChartCallbackFunction | any;

// Add HCView to ngAfteViewInit
Expand Down Expand Up @@ -432,12 +432,12 @@ export class MapComponent {
// console.log('Inisde afterAnimate rotate Globe');
// console.log(chart.mapView.options.projection.rotation[0])
// console.log(chart.mapView.options.projection.rotation[1])

// Circular Reference Utility
const getCircularReplacer = () => {
const seen = new WeakSet();
return (key:any, value:any) => {
if (typeof value === "object" && value !== null) {
return (key: any, value: any) => {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return;
}
Expand All @@ -446,15 +446,17 @@ export class MapComponent {
return value;
};
};



// {"otherData":123}

console.log("chart",JSON.stringify(chart.mapView, getCircularReplacer()))


console.log(
'chart',
JSON.stringify(chart.mapView, getCircularReplacer())
);

setInterval(() => {
let rot_x_axis = chart.mapView.options.projection.rotation[0]+2;
let rot_y_axis = chart.mapView.options.projection.rotation[1]
let rot_x_axis = chart.mapView.options.projection.rotation[0] + 2;
let rot_y_axis = chart.mapView.options.projection.rotation[1];
let rotationArray = [rot_x_axis % 360, rot_y_axis];
chart.mapView.update(
{
Expand Down Expand Up @@ -489,9 +491,9 @@ export class MapComponent {
},

subtitle: {
text:
'Source: <a href="https://mfe-login-app.vercel.app/">Login Application</a><br>' +
'Click and drag to rotate globe<br>',
// text:
// 'Source: <a href="https://mfe-login-app.vercel.app/">Login Application</a><br>' +
// 'Click and drag to rotate globe<br>',
floating: true,
y: 34,
align: 'left',
Expand Down Expand Up @@ -691,7 +693,7 @@ export class MapComponent {
*/
],
};

// explore() {
// console.log('inside explore method');
// console.log(this.chartCallback);
Expand Down Expand Up @@ -765,7 +767,7 @@ export class MapComponent {
// false
// );
// chart.redraw(true);

// */
// }

Expand Down

1 comment on commit e6601e4

@vercel
Copy link

@vercel vercel bot commented on e6601e4 Feb 18, 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.