community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1745922 - in /comdev/nearby_people/templates: base_map.html map.html people.html
Date Sat, 28 May 2016 19:15:09 GMT
Author: nick
Date: Sat May 28 19:15:09 2016
New Revision: 1745922

URL: http://svn.apache.org/viewvc?rev=1745922&view=rev
Log:
Bigger map when not listing people+distances

Modified:
    comdev/nearby_people/templates/base_map.html
    comdev/nearby_people/templates/map.html
    comdev/nearby_people/templates/people.html

Modified: comdev/nearby_people/templates/base_map.html
URL: http://svn.apache.org/viewvc/comdev/nearby_people/templates/base_map.html?rev=1745922&r1=1745921&r2=1745922&view=diff
==============================================================================
--- comdev/nearby_people/templates/base_map.html (original)
+++ comdev/nearby_people/templates/base_map.html Sat May 28 19:15:09 2016
@@ -49,13 +49,10 @@ function showDetail(uid) {
 //-->
 </script>
 <style type="text/css">
-#map {
-	border: 1px solid #bbbbbb;
-	height: 400px;
-	width: 80%;
-}
+#map { border: 1px solid #bbbbbb; }
+#map.col1map { height: 400px; width: 80%; }
+#map.col2map { width:500px; height:500px; float: left }
 
-	#map { float:left; width:500px; height:500px; }
 	#people { float:left; width:300px; background:#eee; list-style:none; padding:0; }
 	#people tr { padding:5px; }
 	#people tr:hover { background:#FFF; color:#ff;}

Modified: comdev/nearby_people/templates/map.html
URL: http://svn.apache.org/viewvc/comdev/nearby_people/templates/map.html?rev=1745922&r1=1745921&r2=1745922&view=diff
==============================================================================
--- comdev/nearby_people/templates/map.html (original)
+++ comdev/nearby_people/templates/map.html Sat May 28 19:15:09 2016
@@ -9,8 +9,8 @@
 <script type="text/javascript" charset="utf-8">
 <!--
 function global() {
-    map.setZoom(1);
-    map.panTo(new GLatLng(0, 0));
+    map.setZoom(2);
+    map.panTo(new GLatLng(20, 0));
 }
 function europe() {
     map.setZoom(3);
@@ -74,7 +74,7 @@ $(document).ready(function(){
  <input type="button" value="Australasia" onClick="aus()"/>
 </p>
 
-<div id="map"></div>
+<div id="map" class="col1map"></div>
 
 <br clear="all" />
 <br /><br /><br />

Modified: comdev/nearby_people/templates/people.html
URL: http://svn.apache.org/viewvc/comdev/nearby_people/templates/people.html?rev=1745922&r1=1745921&r2=1745922&view=diff
==============================================================================
--- comdev/nearby_people/templates/people.html (original)
+++ comdev/nearby_people/templates/people.html Sat May 28 19:15:09 2016
@@ -12,7 +12,7 @@ $(document).ready(function(){
 	if (GBrowserIsCompatible()) {
 		map = new GMap2(document.getElementById('map'));
 		map.addControl(new GLargeMapControl());
-        map.setCenter(new GLatLng({{center_lat}}, {{center_long}}), 14);
+      map.setCenter(new GLatLng({{center_lat}}, {{center_long}}), 14);
 
         // Zoom to roughly the right place
         map.panTo(new GLatLng( {{center_lat}}, {{center_long}} ));
@@ -68,7 +68,7 @@ $(document).ready(function(){
 	  {% endfor %}
 	</table>
 
-	<div id="map"></div>
+	<div id="map" class="col2map"></div>
 	
 {% else %}
 	<p>Sorry, there's no-one near you :(</p>



Mime
View raw message