PHP code example of fedik / php-maptiles
1. Go to this page and download the library: Download fedik/php-maptiles library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fedik / php-maptiles example snippets
// Setup
$tiler = new Fedik\MapTiles\MapTiles('/full/path/to/my-image.jpg', array(
'tiles_path' => '/full/path/to/where-to-store-tiles/',
'zoom_max' => 3
));
// Generate tiles
$tiler->process(true);