<metal:block use-macro="here/standard_template_macro">
<metal:block metal:fill-slot="header-title"><title>Test map view</title></metal:block>
<tal:block metal:fill-slot="body"
           define="test_name request/form/name|string:portal_map">

<tal:block content="structure python:here.setup_map_engine_html(request)" />




<tal:block condition="python:test_name == 'portal_map'">
<div id="map"></div>
<script type="text/javascript">(function() {

var map_engine = naaya_map_engine.portal_map('map');
window.load_map_points = function() {
    console.log(13);
}

})();</script>
</tal:block>




<tal:block condition="python:test_name == 'map_with_points'">
<div id="minimap"></div>
<script type="text/javascript">(function() {

var points = [
    {lat: 50, lon: 5},
    {lat: 45, lon: 15}
];

var map_engine = naaya_map_engine.map_with_points('minimap', points);

})();</script>
</tal:block>

</tal:block>
</metal:block>
