Browse Source

Map refactored and dependency updates

master
Dean 5 years ago
parent
commit
f760724519
  1. 3
      packages/client/package.json
  2. 10
      packages/client/src/components/app/embedded-map/EmbeddedMap.svelte
  3. 1334
      packages/client/yarn.lock

3
packages/client/package.json

@ -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",

10
packages/client/src/components/app/embedded-map/EmbeddedMap.svelte

@ -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: "&copy; " + cleanAttribution,

1334
packages/client/yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save