Ecosyste.ms: Awesome

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

https://github.com/timwis/choo-leaflet-demo

Example usage of leaflet with choo via cache-element
https://github.com/timwis/choo-leaflet-demo

Last synced: 20 days ago
JSON representation

Example usage of leaflet with choo via cache-element

Lists

README

        

# choo leaflet demo

Illustrates how to use [leaflet](http://leafletjs.com) in the
[choo framework](https://github.com/yoshuawuyts/choo) via
[cache-element](https://github.com/yoshuawuyts/cache-element).
The [demo](http://choo-leaflet-demo.surge.sh) shows a reducer
that updates the `title` part of the state without affecting
or re-rendering the map, as well as a reducer that updates the
`coords` which causes the map to pan to a new location.

## install
```bash
npm install
```

## usage
```bash
npm start
```