phosphor-leaflet
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

phosphor-leaflet

npm version

phosphor-leaflet wraps Leaflet in a simple PhosphorJS widget. It's only a few lines of code.

Usage

import { Widget } from '@phosphor/widgets';
import { LeafletMap } from 'phosphor-leaflet';
import * as L from 'leaflet';
 
const map = new LeafletMap({
    // Leaflet map constructor options like:
    // minZoom: 3
});
 
// The original leaflet map object is accessible through map.l:
map.l.addLayer(L.circleMarker([0, 0]));
 
// The map object is a PhosphorJS widget.
Widget.attach(map, document.body);

The widget uses CSS class name phosphor-Leaflet.

License

The MIT License

Copyright (c) 2017 BusFaster Ltd

Readme

Keywords

Package Sidebar

Install

npm i phosphor-leaflet

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jjrv