An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Leaflet

[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaGeo.github.io/Leaflet.jl/stable)
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaGeo.github.io/Leaflet.jl/dev)
[![CI](https://github.com/JuliaGeo/Leaflet.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/JuliaGeo/Leaflet.jl/actions/workflows/CI.yml)
[![codecov.io](http://codecov.io/github/JuliaGeo/Leaflet.jl/coverage.svg?branch=main)](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)
```
![](https://user-images.githubusercontent.com/4471859/275353261-0b1aa078-be0f-443c-a5d8-fc27a9a66cef.png)