Replace Placekitten with Cataas in docs (#9695)

This commit is contained in:
Melvin Kosisochukwu
2025-04-29 21:21:48 +01:00
committed by GitHub
parent 1dcd7f9c2e
commit c4a1e362bf

View File

@ -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](https://placekitten.com):
Let's illustrate with a custom `L.TileLayer` that will display random kitten images from [Cataas](https://cataas.com):
TileLayer.Kitten = TileLayer.extend({
getTileUrl(coords) {