Leaflet.js with PHP API Caching

Demo of a Leaflet Map with server side caching of external API requests. The map uses Leaflet geolocation, grabs bounds and sends them in coordinates to the server. The server makes API requests, caches them, responds, and the client parses and plots different markers for different API calls. The zoom is limited while pan/drag distance is calulcated and used to throttle client side requests. On the server side, API requests are cached using PHP-SimpleCache. Check out the source. Back to Article