1.1.1 • Published 7 years ago

leaflet-universal v1.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

react-leaflet-universal

Thin wrapper around react-leaflet that is designed to make it easier to implement the module in universal applications. Leaflet was not designed with the server in mind, making it very difficult to work with for server-side rendering.

To sidestep this issue, we simply don't render server side. This module wraps all of react-leaflet's components in a Wrapper class that only renders when the component is mounted - which only happens client-side.

usage

Just use it as you normally would use react-leaflet. e.g. Instead of

import { Map } from 'react-leaflet';

write

import { Map } from 'react-leaflet-universal';
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago