[components,maps][l]: implements Leaflet map component -- #963

This commit is contained in:
João Demenech
2023-07-03 18:55:43 -03:00
parent 9ee4376abf
commit 5e72711629
6 changed files with 477 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
<!--
This is necessary for maps to work.
If we decide to distribute this component,
perhaps we could use a provider for this,
e.g.
.../_app.tsx
<PortalJSProvider>
<Component />
</PortalJSProvider>
-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<!-- <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script> -->