<?php

class osm extends SYSTEM\PAGE\Page {
    public function html(){
        $vars = array();                        
        $vars['content'] = ' <script>drawmap()</script><div>
                             <div>Karte (Testversion)</div>
                             <div>© <a href="http://www.openstreetmap.org">OpenStreetMap</a>
                               und <a href="http://www.openstreetmap.org/copyright">Mitwirkende</a>,
                               <a href="http://creativecommons.org/licenses/by-sa/2.0/deed.de">CC-BY-SA</a>
                             </div>
                            </div>
                            <div id="map" onload="drawmap();">
                            </div>';
        return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'osm/osm.tpl'), $vars);
    }
}