Mercurial > hg > batmud > gmap2
changeset 263:7e57e5577425 gmap2
Remove player position code for now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Apr 2014 16:29:54 +0300 |
parents | 254343316a90 |
children | 649c82460b76 |
files | map.js |
diffstat | 1 files changed, 0 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/map.js Sun Apr 13 16:27:43 2014 +0300 +++ b/map.js Sun Apr 13 16:29:54 2014 +0300 @@ -105,12 +105,6 @@ }); } - if (args && args.token) - { - pmapToken = args.token; - pmapUpdatePID = setInterval("pmapUpdatePlayerPosition", 1500); - } - pmapInitializeNav(); pmapInitializeIcons(); pmapInitializeMarkers(); @@ -169,24 +163,3 @@ window.prompt("Copy to clipboard: Ctrl+C, Enter", str); } } - -function pmapUpdatePlayerPosition() -{ - if (pmapToken) - { -// XDownloadUrl("http://www.bat.org/playerpos?token="+pmapToken, - XDownloadUrl("http://tnsp.org/gmapng/playerpos?token="+pmapToken, - function(data, responseCode) - { - if (data != "") - { - var pos = JSON.parse(data); - if (pos.x != pmapPrevPos.x || pos.y != pmapPrevPos.y) - { - pmap.panTo(pmapMapCoordsToLatLng(new google.maps.Point(args.x, args.y), 6)); - pmapPrevPos = pos; - } - } - }); - } -}