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 @@ + + +
+ +Cursor position:
+Confirmed position:
+ + +