Skip to content

Commit 1b81762

Browse files
author
5chdn
committed
extend Layer rather than class (leaflet 1.0 compatibility)
1 parent 7b2faca commit 1b81762

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

L.CanvasOverlay.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
Generic Canvas Overlay for leaflet.
33
44
** Requires **
5-
- Leaflet 0.7.3 or later
5+
- Leaflet 1.0.0rc1 or later
66
77
** Copyright **
88
(C) 2014 Stanislav Sumbera
99
- http://blog.sumbera.com/2014/04/20/leaflet-canvas/
1010
1111
** Maintained by **
12-
(C) 2015 Alexander Schoedon <schoedon@uni-potsdam.de>
12+
(C) 2015-16 Alexander Schoedon <schoedon@uni-potsdam.de>
1313
1414
All rights reserved.
1515
@@ -26,7 +26,7 @@
2626
/**
2727
* Leaflet canvas overlay class
2828
*/
29-
L.CanvasOverlay = L.Class.extend({
29+
L.CanvasOverlay = L.Layer.extend({
3030

3131
initialize: function(userDrawFunc, options) {
3232
this._userDrawFunc = userDrawFunc;

0 commit comments

Comments
 (0)