It seems that this function is not declared. Can we enhance the typescript declaration you propose so as to declare it?
import * as L from 'leaflet';
declare module 'leaflet' {
namespace control {
function browserPrint(options?: any): Control.BrowserPrint;
}
namespace Control {
interface BrowserPrint {
addTo(map: L.Map): any;
}
}
}
The error you're getting is that L.Control.BrowserPrint.Utils is undefined. It's more likely that the registerLayer function is located somewhere else in the API or it doesn't exist.
Hi, when i try to use the function "registerLayer", i get this error:
Here is how to use this function:
It seems that this function is not declared. Can we enhance the typescript declaration you propose so as to declare it?
Thanks.