https://github.com/juliageo/leaflet.jl
LeafletJS mapping library from Julia
https://github.com/juliageo/leaflet.jl
julia leaflet maps
Last synced: 12 months ago
JSON representation
LeafletJS mapping library from Julia
- Host: GitHub
- URL: https://github.com/juliageo/leaflet.jl
- Owner: JuliaGeo
- License: mit
- Created: 2022-04-19T11:09:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T05:13:30.000Z (almost 2 years ago)
- Last Synced: 2024-09-07T18:19:50.408Z (almost 2 years ago)
- Topics: julia, leaflet, maps
- Language: Julia
- Homepage:
- Size: 638 KB
- Stars: 20
- Watchers: 6
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Leaflet
[](https://JuliaGeo.github.io/Leaflet.jl/stable)
[](https://JuliaGeo.github.io/Leaflet.jl/dev)
[](https://github.com/JuliaGeo/Leaflet.jl/actions/workflows/CI.yml)
[](http://codecov.io/github/yeesian/Leaflet.jl?branch=main)
LeafletJS maps for Julia.
This package integrates with WebIO.jl to render leaflet maps for outputs like
Blink.jl, Mux.jl, and for Jupyter notebooks.
All [GeoInterface.jl](https://github.com/JuliaGeo/GeoInterface.jl) compatible geometries can be displayed as layers.
A basic example, where we use GADM to download a country boundary shapefile,
and plot them over the CARTO `:dark_nolabels` base layers.
```julia
using Leaflet, Blink, GADM
layers = Leaflet.Layer.([GADM.get("CHN").geom[1], GADM.get("JPN").geom[1]]; color=:orange);
provider = Providers.CartoDB()
m = Leaflet.Map(; layers, provider, zoom=3, height=1000, center=[30.0, 120.0]);
w = Blink.Window(; body=m)
```
