From 886da391a042df6acc3e990a9eeb297900fe7cf3 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 8 Mar 2022 23:56:13 +0100 Subject: [PATCH 1/2] [android] Separate web flavors Signed-off-by: Alexander Borsuk --- public/assetlinks.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/public/assetlinks.json b/public/assetlinks.json index 36cf38e..fbe40e2 100644 --- a/public/assetlinks.json +++ b/public/assetlinks.json @@ -28,5 +28,35 @@ "96:D6:28:81:78:B0:1B:86:9B:D3:FF:BF:95:B3:3B:EE:DE:23:01:68:DF:88:2A:1D:7A:4B:B2:8B:85:34:59:F4" ] } + }, + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "app.organicmaps.web", + "sha256_cert_fingerprints": [ + "B9:C7:AE:79:A5:A9:02:70:DF:08:A1:32:E5:36:B9:C6:66:F5:BE:F1:F5:9B:30:4F:CE:CF:86:87:86:5E:4B:5B" + ] + } + }, + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "app.organicmaps.web.beta", + "sha256_cert_fingerprints": [ + "B9:C7:AE:79:A5:A9:02:70:DF:08:A1:32:E5:36:B9:C6:66:F5:BE:F1:F5:9B:30:4F:CE:CF:86:87:86:5E:4B:5B" + ] + } + }, + { + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "app.organicmaps.web.debug", + "sha256_cert_fingerprints": [ + "96:D6:28:81:78:B0:1B:86:9B:D3:FF:BF:95:B3:3B:EE:DE:23:01:68:DF:88:2A:1D:7A:4B:B2:8B:85:34:59:F4" + ] + } } ] -- 2.45.3 From c383df46965feebd7a386f5363e0ced257c6770b Mon Sep 17 00:00:00 2001 From: Harry Bond Date: Sun, 27 Feb 2022 20:16:28 +0000 Subject: [PATCH 2/2] improve UI style Signed-off-by: Harry Bond --- .gitignore | 2 + public/ge0.html | 197 +++++++++++++++++++++++++-------- public/get.html | 5 +- public/icons/copy-icon.svg | 9 ++ public/icons/logo-icon.svg | 8 ++ public/placemarks/poi-icon.svg | 17 +++ public/test.html | 26 ++++- src/ge0.ts | 2 +- 8 files changed, 218 insertions(+), 48 deletions(-) create mode 100644 public/icons/copy-icon.svg create mode 100644 public/icons/logo-icon.svg create mode 100644 public/placemarks/poi-icon.svg diff --git a/.gitignore b/.gitignore index 87c8228..2c86d06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ # Autogenerated by esbuild. workers-site/index.js node_modules/ + +.DS_Store diff --git a/public/ge0.html b/public/ge0.html index c1995c4..9ccfcf8 100644 --- a/public/ge0.html +++ b/public/ge0.html @@ -20,55 +20,115 @@ @@ -77,40 +137,89 @@
+
Coordinates copied to clipboard.
diff --git a/public/get.html b/public/get.html index 5819063..132c44b 100644 --- a/public/get.html +++ b/public/get.html @@ -21,7 +21,8 @@ Download and Install Organic Maps @@ -54,7 +78,7 @@ -

geo url scheme

+

Geo url scheme(link)

  1. geo:37.786971,-122.399677
  2. geo:37.786971,-122.399677,1000
  3. diff --git a/src/ge0.ts b/src/ge0.ts index dd20633..9ccc7d2 100644 --- a/src/ge0.ts +++ b/src/ge0.ts @@ -23,7 +23,7 @@ export async function onGe0Decode(template: string, url: string): Promise