react-mapbox-gl-universal

1.0.0 • Public • Published

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';

Readme

Keywords

none

Package Sidebar

Install

npm i react-mapbox-gl-universal

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • masotime