mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
basic router
This commit is contained in:
parent
0d8a507620
commit
e477f50283
12 changed files with 215 additions and 15 deletions
|
@ -1,21 +0,0 @@
|
|||
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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue