Skip to content
Browse files

Fix if no lat/lon

  • Loading branch information...
1 parent d7dd780 commit 2ddc3064db566a51e8e7d804b9dec9d92d63d014 @ranguard ranguard committed Aug 15, 2012
Showing with 14 additions and 3 deletions.
  1. +1 −1 src/groups/country.html
  2. +10 −1 src/groups/group.html
  3. +1 −1 src/groups/index.html
  4. +2 −0 src/includes/style.css
View
2 src/groups/country.html
@@ -22,7 +22,7 @@
}
</script>
-<div id="map_canvas" style="width:100%; height:450px"></div>
+<div id="map_canvas"></div>
<p style="clear:both; height: 50px">&nbsp;</p>
View
11 src/groups/group.html
@@ -10,6 +10,7 @@
<script type="text/javascript">
function initialize() {
+ [% IF latitude && longitude %]
var mapOptions = {
center: new google.maps.LatLng( [% latitude %], [% longitude %]), // show the most pins possible
zoom: [% zoom %],
@@ -22,10 +23,18 @@
dataType: 'json',
success: processMapXML,
});
+ [% END %]
}
</script>
+[% UNLESS latitude && longitude %]
+ <style type="text/css" media="screen">
+ #map_canvas {
+ height: 10px;
+ }
+ </style>
+[% END %]
-<div id="map_canvas" style="width:100%; height:450px"></div>
+<div id="map_canvas"></div>
<p style="clear:both; height: 50px">&nbsp;</p>
View
2 src/groups/index.html
@@ -21,7 +21,7 @@
}
</script>
-<div id="map_canvas" style="width:100%; height:450px"></div>
+<div id="map_canvas"></div>
<p style="clear:both; height: 50px">&nbsp;</p>
View
2 src/includes/style.css
@@ -21,6 +21,8 @@ hr{
}
#map_canvas {
+ width: 100%;
+ height: 450px;
top: 50px;
bottom: -50px;
}

0 comments on commit 2ddc306

Please sign in to comment.
Something went wrong with that request. Please try again.