Map refactored and dependency updates
This commit is contained in:
parent
39468c98c0
commit
318214fd72
|
@ -32,10 +32,11 @@
|
|||
"@spectrum-css/vars": "^3.0.1",
|
||||
"apexcharts": "^3.22.1",
|
||||
"dayjs": "^1.10.5",
|
||||
"leaflet": "^1.7.1",
|
||||
"downloadjs": "1.4.7",
|
||||
"leaflet": "^1.7.1",
|
||||
"regexparam": "^1.3.0",
|
||||
"rollup-plugin-polyfill-node": "^0.8.0",
|
||||
"sanitize-html": "^2.7.0",
|
||||
"screenfull": "^6.0.1",
|
||||
"shortid": "^2.2.15",
|
||||
"svelte": "^3.38.2",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import L from "leaflet"
|
||||
import sanitizeHtml from 'sanitize-html'
|
||||
import sanitizeHtml from "sanitize-html"
|
||||
import "leaflet/dist/leaflet.css"
|
||||
import { Helpers } from "@budibase/bbui"
|
||||
import { getContext } from "svelte"
|
||||
|
@ -238,11 +238,11 @@
|
|||
mapMarkerGroup.addTo(mapInstance)
|
||||
|
||||
const cleanAttribution = sanitizeHtml(mapAttribution, {
|
||||
allowedTags: [ 'a' ],
|
||||
allowedTags: ["a"],
|
||||
allowedAttributes: {
|
||||
'a': [ 'href' ]
|
||||
}
|
||||
});
|
||||
a: ["href"],
|
||||
},
|
||||
})
|
||||
|
||||
L.tileLayer(tileURL, {
|
||||
attribution: "© " + cleanAttribution,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue