Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#967] Map for entry pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Mar 30, 2017
1 parent f2b65bd commit eb6fcf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion census/views/entry.html
Expand Up @@ -54,7 +54,7 @@ <h6>{{ gettext("See other years") }}</h6>
{% if is_index %}
<div class="col-md-6">
<div id="map-container">
<iframe width="100%" height="360px" src="http://index.okfn.org/vis/map/embed/?embed_width=100%&amp;embed_height=360px&amp;filter_year=2015&amp;filter_dataset=companies&amp;panel_tools=false&amp;panel_share=false&amp;embed_title=United Kingdom ; Company Register ; 2015&amp;map_place=gb" frameborder="0"></iframe>
{% include 'includes/dataviews/embed_map.html' %}
</div>
</div>
{% endif %}
Expand Down
7 changes: 7 additions & 0 deletions index/metalsmith-godi-updatedatafiles.js
Expand Up @@ -44,6 +44,13 @@ function plugin(options) {
file.place.id);
}

file.map = _.clone(metadata.map);
file.map.map_place = file.place.id;
file.map.filter_dataset = file.dataset.id;
file.map.panel_tools = false;
file.map.panel_share = false;
file.map.embed_title = `${file.place.name} ; ${file.dataset.name} ; ${file.map.filter_year}`;

delete file.data;
}

Expand Down

0 comments on commit eb6fcf2

Please sign in to comment.