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

mirabilos at evolvis.org mirabilos at evolvis.org
Sun May 13 17:09:11 CEST 2018 • <20180513150911.124A34A01A0@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  3672d261de49aa99c042f9ca7432e1840729ea3a (commit)
      from  cc315bef2e3fe88690da5868e8faa518f9dc15c9 (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 3672d261de49aa99c042f9ca7432e1840729ea3a
Author: mirabilos <m at mirbsd.org>
Date:   Sun May 13 15:09:01 2018 +0000

    support new OSM format of using slashes

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

Summary of changes:
 mirkarte.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mirkarte.js b/mirkarte.js
index c26c583..fc981ae 100644
--- a/mirkarte.js
+++ b/mirkarte.js
@@ -1,5 +1,5 @@
 /*-
- * Copyright © 2014, 2015, 2017
+ * Copyright © 2014, 2015, 2017, 2018
  *	mirabilos <m at mirbsd.org>
  *
  * Provided that these terms and disclaimer and all copyright notices
@@ -20,6 +20,7 @@
 
 var isNum = /^-?[0-9]*(\.[0-9]*)?$/;
 var isTwoNum = /^-?[0-9]*(\.[0-9]*)?,-?[0-9]*(\.[0-9]*)?$/;
+var isTwoNumSlashd = /^-?[0-9]*(\.[0-9]*)?\/-?[0-9]*(\.[0-9]*)?$/;
 var map_initialised = false, myzoomcontrol_text;
 var map, maplayers, marker = false, params, params_saved = "";
 
@@ -429,6 +430,8 @@ var fn_hashchanged = function () {
 	params["zoom"] = czoom;
 
 	var wantMarker = false, mlat, mlon;
+	if (isTwoNumSlashd.test(params["m"]))
+		params["m"] = params["m"].replace("/", ",");
 	if (isTwoNum.test(params["m"])) {
 		wantMarker = true;
 		mlat = parseFloat(params["m"].split(",")[0]);


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


More information about the useful-scripts-commits mailing list