[% IF map.clickable %]
[% map.img_type = 'input type="image"' %]
[% ELSE %]
[% map.img_type = 'img' %]
[% END %]
[% pre_map %]
[% IF map.copyright %]
[% map.copyright %]
[% END %]
[% BLOCK compass %]
[%
north = c.uri_with( { lat = map.compass.north.0, lon = map.compass.north.1, zoom = map.zoom } )
south = c.uri_with( { lat = map.compass.south.0, lon = map.compass.south.1, zoom = map.zoom } )
east = c.uri_with( { lat = map.compass.east.0, lon = map.compass.east.1, zoom = map.zoom } )
west = c.uri_with( { lat = map.compass.west.0, lon = map.compass.west.1, zoom = map.zoom } )
world = c.uri_with( { zoom = 0 } );
SET zoom_in = c.uri_with( { lat = map.latitude, lon = map.longitude, zoom = map.zoom + 1 } ) IF map.zoom < map.numZoomLevels - 1;
SET zoom_out = c.uri_with( { lat = map.latitude, lon = map.longitude, zoom = map.zoom - 1 } ) IF map.zoom > 0;
SET zoom_in = '#' IF map.zoom >= map.numZoomLevels - 1;
SET zoom_out = '#' IF map.zoom <= 0;
%]
[% END %]
[% BLOCK pin %]
[% IF pin.id %]
[%- END -%]
[%- IF pin.id -%]
[% END %]
[% END %]