mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-15 22:36:58 +00:00
Fix 2 links without URLs in docs (#8542)
This commit is contained in:
@ -15,7 +15,7 @@ A few of the Leaflet classes have so-called "extension methods": entry points fo
|
||||
|
||||
One of them is `L.TileLayer.getTileUrl()`. This method is called internally by `L.TileLayer` whenever a new tile needs to know which image to load. By making a subclass of `L.TileLayer` and rewriting its `getTileUrl()` function, we can create custom behaviour.
|
||||
|
||||
Let's illustrate with a custom `L.TileLayer` that will display random kitten images from [PlaceKitten]():
|
||||
Let's illustrate with a custom `L.TileLayer` that will display random kitten images from [PlaceKitten](https://placekitten.com):
|
||||
|
||||
L.TileLayer.Kitten = L.TileLayer.extend({
|
||||
getTileUrl: function(coords) {
|
||||
|
Reference in New Issue
Block a user