PHP code example of zineer / map-maker-sprite-generator

1. Go to this page and download the library: Download zineer/map-maker-sprite-generator 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/ */

    

zineer / map-maker-sprite-generator example snippets


$ms = new MarkerSprite(array('FF0000', '00FF00', '0000FF'), 'A-Z', true);
$pngFile = 'markers.png';
$ms->generateImage('images/'.$pngFile);
$js = $ms->generateJS($pngFile);