PHP code example of mandrael / contao-maplibre

1. Go to this page and download the library: Download mandrael/contao-maplibre 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/ */

    

mandrael / contao-maplibre example snippets


use Mandrael\ContaoMaplibreBundle\Map\Marker;
use Mandrael\ContaoMaplibreBundle\Map\MaplibreRenderer;

$html = $renderer->render(
    [
        new Marker(47.8127, 13.0489, 'Praxis Tobar', 'Breitenfelderstr. 47a, 5020 Salzburg', '/profil/tobar'),
        // ...
    ],
    ['cluster' => true, 'height' => 500]
);