add leaflet.heat plugin

This commit is contained in:
Tim Herbst 2020-12-26 16:26:02 +01:00
parent b19da0c819
commit 02ff4267bf
3 changed files with 8 additions and 1 deletions

View File

@ -7129,6 +7129,11 @@
"resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.7.1.tgz", "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.7.1.tgz",
"integrity": "sha512-/xwPEBidtg69Q3HlqPdU3DnrXQOvQU/CCHA1tcDQVzOwm91YMYaILjNp7L4Eaw5Z4sOYdbBz6koWyibppd8Zqw==" "integrity": "sha512-/xwPEBidtg69Q3HlqPdU3DnrXQOvQU/CCHA1tcDQVzOwm91YMYaILjNp7L4Eaw5Z4sOYdbBz6koWyibppd8Zqw=="
}, },
"leaflet.heat": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/leaflet.heat/-/leaflet.heat-0.2.0.tgz",
"integrity": "sha1-EJ2M9Ybwre5B8Fr/Ax4np3/swik="
},
"leaflet.markercluster": { "leaflet.markercluster": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/leaflet.markercluster/-/leaflet.markercluster-1.4.1.tgz", "resolved": "https://registry.npmjs.org/leaflet.markercluster/-/leaflet.markercluster-1.4.1.tgz",

View File

@ -26,6 +26,7 @@
"bootstrap": "^4.5.3", "bootstrap": "^4.5.3",
"jquery": "^3.5.1", "jquery": "^3.5.1",
"leaflet": "^1.7.1", "leaflet": "^1.7.1",
"leaflet.heat": "^0.2.0",
"leaflet.markercluster": "^1.4.1", "leaflet.markercluster": "^1.4.1",
"ng-apexcharts": "^1.5.6", "ng-apexcharts": "^1.5.6",
"rxjs": "~6.6.0", "rxjs": "~6.6.0",

View File

@ -1,6 +1,7 @@
import {ChangeDetectorRef, Injectable} from '@angular/core'; import {Injectable} from '@angular/core';
import * as L from 'leaflet'; import * as L from 'leaflet';
import 'leaflet.markercluster'; import 'leaflet.markercluster';
import 'leaflet.heat/dist/leaflet-heat';
import {HttpClient} from '@angular/common/http'; import {HttpClient} from '@angular/common/http';
import {environment} from '../../environments/environment'; import {environment} from '../../environments/environment';
import {PopUpService} from './pop-up.service'; import {PopUpService} from './pop-up.service';