Closed smellman closed 1 year ago
I support this Issue,
@smellman and @Captain-Oski , I am very sorry for inconvenience. README's usage of CDN was wrong, it missed module name of MaplibreLegendControl.
.
map.addControl(
new MaplibreLegendControl.MaplibreLegendControl(targets, {
showDefault: true,
showCheckbox: true,
onlyRendered: true,
reverseOrder: true
}),
'bottom-left'
);
I also added an example HTML for UMD module (index_umd.html
). Please check it.
Describe the bug MaplibreLegendControl for UMD version is not constructor.
To Reproduce Steps to reproduce the behavior:
Expected behavior It to be a constructor.
Desktop (please complete the following information):