-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use same way of displaying toggle as Google/Zurich, so it works on e.…
…g. report pages.
- Loading branch information
Showing
4 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
[% map_toggle_link = BLOCK %] | ||
[% map_sub_links = BLOCK %] | ||
[% IF c.req.params.aerial %] | ||
<a id="map_layer_toggle" href="[% c.uri_with( { aerial => 0 } ) %]">[% loc('Roads') %]</a> | ||
[% ELSE %] | ||
<a id="map_layer_toggle" href="[% c.uri_with( { aerial => 1 } ) %]">[% loc('Aerial') %]</a> | ||
[% END %] | ||
[% END %] | ||
[% map_html = INCLUDE maps/openlayers.html %] | ||
|
||
[% map_html = BLOCK %] | ||
[% INCLUDE maps/openlayers.html %] | ||
[% UNLESS around_page %] | ||
<p class="sub-map-links" id="sub_map_links"> | ||
[% map_sub_links | safe %] | ||
</p> | ||
[% END %] | ||
[% END %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
[% map_toggle_link = BLOCK %] | ||
[% map_sub_links = BLOCK %] | ||
[% IF c.req.params.aerial %] | ||
<a id="map_layer_toggle" href="[% c.uri_with( { aerial => 0 } ) %]">[% loc('Roads') %]</a> | ||
[% ELSE %] | ||
<a id="map_layer_toggle" href="[% c.uri_with( { aerial => 1 } ) %]">[% loc('Aerial') %]</a> | ||
[% END %] | ||
[% END %] | ||
[% | ||
map_html = INCLUDE maps/openlayers.html include_key = 1 | ||
%] | ||
|
||
[% map_html = BLOCK %] | ||
[% INCLUDE maps/openlayers.html include_key = 1 %] | ||
[% UNLESS around_page %] | ||
<p class="sub-map-links" id="sub_map_links"> | ||
[% map_sub_links | safe %] | ||
</p> | ||
[% END %] | ||
[% END %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters