leaflet angular.json

This commit is contained in:
KarthiKeyanZ 2023-11-20 16:16:50 +05:30
parent 096705ce65
commit a5c8c37ebf
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
"src/assets"
],
"styles": [
"node_modules/leaflet/dist/leaflet.css",
"node_modules/leaflet.markercluster/dist/MarkerCluster.css",
"node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css",
"src/styles.css",
"src/assets/vendors/css/bootstrap.min.css",
"src/assets/css/style.css",

View File

@ -62,7 +62,7 @@ export class LocationComponent implements AfterViewInit {
}
private fetchLocationData(): void {
this.http.get('https://explorer3.epic.tech/epic_explorer/v1/blockchain_block/v1/peers/all').subscribe((data: any) => {
this.http.get('https://explorer.epic.tech/epic_explorer/v1/blockchain_block/v1/peers/all').subscribe((data: any) => {
this.locations = data.response;
this.addMarkers();
});