public layers: object[] = [
{
shapeData: new MapAjax('https://ej2.syncfusion.com/demos/src/dashboard-layout/worldmap.json'),
shapePropertyPath: 'continent',
shapeDataPath: 'continent',
dataSource: new MapAjax('https://ej2.syncfusion.com/demos/src/dashboard-layout/datasource.json'),
shapeSettings: {
colorValuePath: 'color',
},
}] |
Hi RakhiS,Sorry for the inconvenience.We have checked your reported problem with DashboardLayout component. We have used local datasource for declaring the map component. So, your reported issue occurs.To resolve you issue, you can use online URL link for loading maps inside the DashboardLayout panel. Refer the below code snippet.
public layers: object[] = [{shapeData: new MapAjax('https://ej2.syncfusion.com/demos/src/dashboard-layout/worldmap.json'),shapePropertyPath: 'continent',shapeDataPath: 'continent',dataSource: new MapAjax('https://ej2.syncfusion.com/demos/src/dashboard-layout/datasource.json'),shapeSettings: {colorValuePath: 'color',},}]
You can also find the local map data in below link.For your reference, we have prepared a sample.Refer the below links for Map component.UG documentation- https://ej2.syncfusion.com/angular/documentation/maps/getting-started/Please let us know, if you need any further assistance.Regards,Sowmiya.P