forked from MapComplete/MapComplete
First steps for a decent custom theme generator
This commit is contained in:
parent
a57b7d93fa
commit
2052976909
82 changed files with 1880 additions and 1311 deletions
|
@ -223,12 +223,8 @@ export class FilteredLayer {
|
|||
} else {
|
||||
if(style.icon.iconSize === undefined){
|
||||
style.icon.iconSize = [50,50]
|
||||
}if(style.icon.iconAnchor === undefined){
|
||||
style.icon.iconAnchor = [style.icon.iconSize[0] / 2,style.icon.iconSize[1]]
|
||||
}
|
||||
if (style.icon.popupAnchor === undefined) {
|
||||
style.icon.popupAnchor = [0, 8 - (style.icon.iconSize[1])]
|
||||
}
|
||||
|
||||
marker = L.marker(latLng, {
|
||||
icon: new L.icon(style.icon),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue