Commit c8968a7b authored by Matija Obreza's avatar Matija Obreza
Browse files

Render headings when needed

parent 815ff963
......@@ -17,6 +17,7 @@ var GenesysMaps = {
loadedMaps : [],
defaultOptions : {
zoom : 5,
markerTitle: null,
center : [ 0, 0 ]
},
......
......@@ -214,7 +214,7 @@
</div>
<c:if test="${statisticsCrops ne null}">
<c:if test="${statisticsCrops ne null and statisticsCrops.totalCount gt 0}">
<h4>
<span>
<spring:message code="faoInstitute.stat-by-crop" />
......@@ -227,6 +227,7 @@
</div>
</c:if>
<c:if test="${statisticsGenus ne null and statisticsGenus.numberOfElements gt 0}">
<h4>
<span>
<spring:message code="faoInstitute.stat-by-genus" arguments="${statisticsGenus.numberOfElements}" />
......@@ -257,7 +258,9 @@
</div>
</div>
</div>
</c:if>
<c:if test="${statisticsTaxonomy ne null and statisticsTaxonomy.numberOfElements gt 0}">
<h4>
<span>
<spring:message code="faoInstitute.stat-by-species" arguments="${statisticsTaxonomy.numberOfElements}" />
......@@ -287,9 +290,8 @@
<div id="chartStatsBySpecies" style="height: 192px"></div>
</div>
</div>
</div>
</c:if>
<!-- See also end -->
</div>
......@@ -402,7 +404,7 @@
<script type="text/javascript">
jQuery(document).ready(function() {
var map=GenesysMaps.map("${pageContext.response.locale.language}", $("#map"), {
zoom: 1,
zoom: 1,
minZoom: 0,
maxZoom: 4, /* WIEWS does not provide enough detail */
<c:if test="${faoInstitute.latitude ne null}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment