From 45883e27be69ee655464bcda4f2ea5292ec64d51 Mon Sep 17 00:00:00 2001 From: Charles Yang Date: Thu, 9 May 2019 21:40:37 +0800 Subject: [PATCH 1/2] Use google map instead to avoid false position. --- .gitignore | 3 ++ README.md | 6 +-- mapserver/static/googlemap.html | 91 +++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 mapserver/static/googlemap.html diff --git a/.gitignore b/.gitignore index 2da37b8..32a33e0 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,6 @@ gps-sdr-sim-lut # Temporary files *.swp *~ + +# Python bytecodes +*.pyc \ No newline at end of file diff --git a/README.md b/README.md index ea51344..f81ca3d 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,9 @@ cd into /mapserver, and run python mapper.py ``` -Then visit http://127.0.0.1:8080/static/baidumap.html to use the baidu Online map. +Then visit http://127.0.0.1:8080/static/googlemap.html to use the google Online map. - - -Actually I don't want to use BaiduMap.. But because of the GFW, I can't access Google.. +Since Baidu map uses the GCJ02 coordinate system, the coordinates shown on the map http://127.0.0.1:8080/static/googlemap.html deviate from the actual position. You can write an map which can POST data to http://127.0.0.1:8080/post like this diff --git a/mapserver/static/googlemap.html b/mapserver/static/googlemap.html new file mode 100644 index 0000000..4f4d40d --- /dev/null +++ b/mapserver/static/googlemap.html @@ -0,0 +1,91 @@ + + + + + Choose Your Location + + + + + + + + + +
+
+ +
+

Cursor position:

+

Confirmed position:

+ + + From 33aa99cdff44ab8f8ced315ff0b7ea047ef92403 Mon Sep 17 00:00:00 2001 From: Charles Yang Date: Thu, 9 May 2019 21:42:06 +0800 Subject: [PATCH 2/2] Fix false description. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f81ca3d..5a2ca7a 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ python mapper.py Then visit http://127.0.0.1:8080/static/googlemap.html to use the google Online map. -Since Baidu map uses the GCJ02 coordinate system, the coordinates shown on the map http://127.0.0.1:8080/static/googlemap.html deviate from the actual position. +Since Baidu map uses the GCJ02 coordinate system, the coordinates shown on the map http://127.0.0.1:8080/static/baidumap.html deviate from the actual position. You can write an map which can POST data to http://127.0.0.1:8080/post like this