basic router

This commit is contained in:
Fedor Katurov 2018-08-16 12:29:58 +07:00
parent 0d8a507620
commit e477f50283
12 changed files with 215 additions and 15 deletions

21
src/utils/DomMarker.js Normal file
View file

@ -0,0 +1,21 @@
import L from 'leaflet';
export const DomMarker = L.DivIcon.extend({
initialize: function (options) {
this.options = options;
},
options: {
element: null // a initialized DOM element
// same options as divIcon except for html
},
createIcon: function() {
const { html, element, className } = this.options;
this._setIconStyles(element, 'icon');
return element;
}
});