check-in bower_components
This commit is contained in:
parent
4cc16bccd0
commit
9e08e74132
101 changed files with 90960 additions and 0 deletions
27
bower_components/leaflet-plugins/layer/Icon.Canvas.js
vendored
Normal file
27
bower_components/leaflet-plugins/layer/Icon.Canvas.js
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
L.Icon.Canvas = L.Icon.extend({
|
||||
options: {
|
||||
iconSize: new L.Point(20, 20), // Have to be supplied
|
||||
/*
|
||||
iconAnchor: (Point)
|
||||
popupAnchor: (Point)
|
||||
*/
|
||||
className: 'leaflet-canvas-icon'
|
||||
},
|
||||
|
||||
createIcon: function () {
|
||||
var e = document.createElement('canvas');
|
||||
this._setIconStyles(e, 'icon');
|
||||
var s = this.options.iconSize;
|
||||
e.width = s.x
|
||||
e.height = s.y;
|
||||
this.draw(e.getContext('2d'), s.x, s.y);
|
||||
return e;
|
||||
},
|
||||
|
||||
createShadow: function () {
|
||||
return null;
|
||||
},
|
||||
|
||||
draw: function(canvas, width, height) {
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue