PHP code example of booosta / openstreetmap_org
1. Go to this page and download the library: Download booosta/openstreetmap_org 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/ */
booosta / openstreetmap_org example snippets
# [...]
$map = $this->makeInstance('openstreetmap_org', $lat, $lon, $zoom);
$html = $map->get_html();
# myscript.php
$this->TPL['mymap'] = $map->get_html();
# mytemplate.tpl
{%mymap}