[% IF map.clickable %] [% map.img_type = 'input type="image"' %] [% ELSE %] [% map.img_type = 'img' %] [% END %]
[% pre_map %]
[% 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( { zoom = map.zoom + 1 } ) IF map.zoom < map.numZoomLevels - 1; SET zoom_out = c.uri_with( { 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 %] [% cols = { red = 'R', green = 'G', blue = 'B', purple = 'P', } %] [% IF pin.id %] [%- END -%] [% loc('Problem') %] [%- IF pin.id -%] [% END %] [% END %]