[tarent-useful-scripts SCM] {mirkarte} branch master updated. d30f345f03c641b9814c977bc89b3864386931a6

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Aug 20 00:05:12 CEST 2014 • <20140819220512.945C44A24EF@evolvis.org>


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MirKarte source code repository".

The branch, master has been updated
       via  d30f345f03c641b9814c977bc89b3864386931a6 (commit)
       via  7761fb86c1f90e9b6ce2c53e54f8f8c72949c28c (commit)
      from  e48271594e114fece87061327f32297577c6eb2b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d30f345f03c641b9814c977bc89b3864386931a6
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Tue Aug 19 22:05:33 2014 +0000

    finish and document

commit 7761fb86c1f90e9b6ce2c53e54f8f8c72949c28c
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Tue Aug 19 21:59:05 2014 +0000

    oh…

-----------------------------------------------------------------------

Summary of changes:
 README         |    8 +++++++-
 geohashing.cgi |    8 ++++----
 marker.htm     |    2 +-
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/README b/README
index fd24978..8d16bf1 100644
--- a/README
+++ b/README
@@ -21,6 +21,12 @@ responsible.
 If you use this, you must check the terms of use of the
 various tile or WMS services yourself.
 
+Variants:
+– index.htm (mirkarte.js): standard/basic map
+– marker.htm (marker.js): allows multiple markers, quick hack,
+  largely untested, markers cannot be removed, scrap
+– geohashing.cgi (mirkarte.js): displays xkcd Geo Hashing waypoints
+
 VCS repository:
 https://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=useful-scripts/mirkarte.git
 
@@ -43,7 +49,7 @@ Konqueror (KDE 4) with Webkit works better. ZIP decoding
 misses getting the progress and end events, but regular
 GPX import works.
 
-This was mostly tested with Firefox 24 ESR on Debian.
+This was mostly tested with Firefox 24 ESR and 31 ESR on Debian.
 
 
 Documentation
diff --git a/geohashing.cgi b/geohashing.cgi
index ee169d6..458bc0b 100755
--- a/geohashing.cgi
+++ b/geohashing.cgi
@@ -200,7 +200,7 @@ Content-type: text/html; charset=utf-8
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="copyright" content="see mirkarte.js" />
- <title>MirKarte (Beta)</title>
+ <title>MirKarte for xkcd Geo Hashing (Beta)</title>
  <link rel="stylesheet" type="text/css" href="leaflet/leaflet.css" />
  <style type="text/css"><!--/*--><![CDATA[/*><!--*/
   #nomap {
@@ -248,8 +248,8 @@ Content-type: text/html; charset=utf-8
   var geohashing_points = [
 EOF
 
-for lat in 49 50 51 52; do
-	for lon in -2 -1 -0 1 2 3 4 5 6 7 8 9 10 11 12; do
+for lat in 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56; do
+	for lon in -6 -5 -4 -3 -2 -1 -0 1 2 3 4 5 6 7 8 9 10 11 12; do
 		print "	[${lat}${latlon[0]}, ${lon}${latlon[1]}],"
 	done
 done
@@ -261,7 +261,7 @@ cat <<'EOF'
   function mirkarte_hookfn(map) {
 	var i = 0;
 
-	while (geohashing_points[i][0] && geohashing_points[i][1]) {
+	while (geohashing_points[i][0] || geohashing_points[i][1]) {
 		var ghmarker = L.marker(geohashing_points[i], {
 			"draggable": false
 		    }).addTo(map);
diff --git a/marker.htm b/marker.htm
index 17205b5..af01c36 100644
--- a/marker.htm
+++ b/marker.htm
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="copyright" content="see mirkarte.js" />
- <title>MirKarte (Beta)</title>
+ <title>MirKarte with multiple markers (Alpha)</title>
  <link rel="stylesheet" type="text/css" href="leaflet/leaflet.css" />
  <style type="text/css"><!--/*--><![CDATA[/*><!--*/
   #nomap {


hooks/post-receive
-- 
MirKarte source code repository
(Evolvis project useful-scripts repository mirkarte)


More information about the useful-scripts-commits mailing list