Handle *.umap files with Leaflet.js
test | 1 year ago | ||
.gitignore | 1 year ago | ||
.hgignore | 1 year ago | ||
.hgtags | 1 year ago | ||
README.md | 1 year ago | ||
loadumap.css | 1 year ago | ||
loadumap.js | 1 year ago | ||
loadumap.sh | 1 year ago | ||
pretty.rb | 1 year ago |
Handle *.umap files with Leaflet.js
Download your uMap map file from uMap server.
Assume your uMap file is "mymap.umap".
<head> <link rel="stylesheet" href="https://www.yatex.org/gitbucket/LeafletGo/umapleaflet/raw/2024.05alpha0/loadumap.css"> <script src="https://www.yatex.org/gitbucket/LeafletGo/umapleaflet/raw/2024.05alpha0/loadumap.js" charset="utf-8"></script> div#mymap {width: 95vh; height: 70vh;} </head>
<body> <div id="mymap"> <script type="text/javascript"> Lumap.load("mymap", "mymap.umap"); </script> </body>