GitXplorerGitXplorer
j

phosphor-leaflet

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6d7c8ecab438e084b1be4e1f87c7e2395edf35a1

Fix resize message handing.

jjjrv committed 7 years ago
Unverified
2d483a718693ee1802f88275ab5e9aa93940a8f6

Fix class name and copyright.

jjjrv committed 7 years ago
Unverified
3e5c91fc8986f2ba3f3ba8f3c3aa2715fe011fbc

Fix resize event handling and bump version.

jjjrv committed 7 years ago
Unverified
8bde0940c134466613c2517801b9df3986718840

Initial commit.

jjjrv committed 7 years ago

README

The README file for this repository.

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 charto-LeafletMap.

License

The MIT License

Copyright (c) 2017 BusFaster Ltd