I have a query regarding @typings/leaflet. The index.d.ts file contains typing definitions for TileLayer as shown below:
class TileLayer extends GridLayer {
constructor(urlTemplate: string, options?: TileLayerOptions);
setUrl(url: string, noRedraw?: boolean): this;
options: TileLayerOptions;
}
However, the actual implementation class in leaflet includes many additional methods besides setUrl. How can this assist Angular 4 developers in importing TileLayer without needing to load the entire leaflet.js in index.html?
It is worth noting that in the leaflet.js implementation class, TileLayer is defined under the L namespace.