From 7f79d939b4698679989b967e79116d7c60b7dc4d Mon Sep 17 00:00:00 2001 From: Shinichi Urabe Date: Thu, 10 Mar 2016 00:34:01 +0900 Subject: [PATCH 5/5] It is made to correspond to the satellite view (refs #3775) --- web/cmd/maps.google.co.jp.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/cmd/maps.google.co.jp.js b/web/cmd/maps.google.co.jp.js index d2dced0..62e4e9b 100644 --- a/web/cmd/maps.google.co.jp.js +++ b/web/cmd/maps.google.co.jp.js @@ -12,12 +12,16 @@ function url2cmd(url, googlemapsUrl) { function main(id, googlemapsUrl) { var param = { lon: 0, lat: 0, z: 15, t: '', q: '' }; - var result = id.match(/@([0-9\.]+),([0-9\.]+),([0-9]+z)/); + var result = id.match(/@([0-9\.]+),([0-9\.]+),([0-9]+z)(\/data=!3m1!1e3)?/); if (result) { param.lon = result[1]; param.lat = result[2]; param.z = result[3]; + + if (result[4]) { + param.t = 'k'; + } } else { var query = id.split('&'); for(i = 0; i < query.length; i++) { -- 2.7.1.287.g4943984