Commit Graph

427 Commits

Author SHA1 Message Date
Sascha L. Teichmann
524fe451b1 Fixes small errors in handling players detection in mtwebmapper. 2015-03-10 12:49:10 +01:00
Sascha L. Teichmann
d242fb5cf1 Fixed stupid logic mistake. 2015-03-10 12:17:28 +01:00
Sascha L. Teichmann
09e24cda65 Optimize the case that nothing has changes concerning the players. This should not lead to broadcasting of notifications. 2015-03-10 12:08:14 +01:00
Raimund Renkert
6e9585ed67 Added marker icon for players. 2015-03-09 17:55:53 +01:00
Raimund Renkert
3c63fbf185 Added players layer and update data in manual and auto mode. 2015-03-09 17:55:19 +01:00
Raimund Renkert
b3ba074e28 Added leaflet ajax plugin. 2015-03-09 17:52:17 +01:00
Raimund Renkert
9523353167 Swapped X/Y coordinates for player. 2015-03-09 17:50:58 +01:00
Sascha L. Teichmann
28fc4d0734 Dont lock the player list all the time when serving the GeoJSON over /players. 2015-03-09 16:05:54 +01:00
Sascha L. Teichmann
c918b538db Broadcast player posistion to websocket clients this could be high traffic. 2015-03-09 15:37:57 +01:00
Raimund Renkert
99d4f700be Surround player name attribute with double quotes. 2015-03-09 15:01:47 +01:00
Raimund Renkert
5bf52b5de9 Fixed typos. 2015-03-09 15:01:05 +01:00
Sascha L. Teichmann
3f5bf6c240 Start with empty player list. 2015-03-09 14:32:14 +01:00
Sascha L. Teichmann
5d7b910a4d Read players from fifo. 2015-03-09 14:31:20 +01:00
Sascha L. Teichmann
ff08f2af94 Serve GeoJSON encoded players via /players. 2015-03-09 14:08:52 +01:00
Sascha L. Teichmann
cbfb594c83 Added JSON marshaller for players. 2015-03-09 14:01:30 +01:00
Sascha L. Teichmann
da51389935 Wire websocket forwarder with players updater. 2015-03-09 13:16:31 +01:00
Sascha L. Teichmann
ece8924355 Add stub for players controller. 2015-03-09 13:09:13 +01:00
Sascha L. Teichmann
89413f753c Lua syntax fix. 2015-03-09 12:54:04 +01:00
Sascha L. Teichmann
0ac279d0c7 Ignore unused loop counter. 2015-03-09 12:51:39 +01:00
Sascha L. Teichmann
7c5fa86b27 Write better mod which write data to a fifo. 2015-03-09 12:49:55 +01:00
Sascha L. Teichmann
cec833eb43 Renamed mod directory. 2015-03-09 11:55:59 +01:00
Sascha L. Teichmann
01132e786e First lua script. 2015-03-09 11:49:55 +01:00
Sascha L. Teichmann
d6b4bb6352 Replaced 'if (cond) { ...; return; } if (!cond) { ...; return; }' with 'if (cond) { ... } else { ... }'. 2015-03-08 13:39:02 +01:00
Sascha L. Teichmann
d0b0ba83ba Merged 'websocket' branch back into 'default'. 2015-03-04 13:20:51 +01:00
Sascha L. Teichmann
02c3916bc8 Improved SETUP.md wording a bit. 2015-03-04 12:53:07 +01:00
Sascha L. Teichmann
f2b139eabb Wrote some setup documenation about the new websocket feature. 2015-03-04 12:47:28 +01:00
Sascha L. Teichmann
446a3ddc10 Small JS nits. 2015-03-04 12:10:07 +01:00
Raimund Renkert
c32e2646af Check the browsers websocket support and added flag to turn websocket on/off. 2015-03-04 11:05:36 +01:00
Raimund Renkert
7413221341 Replaced checkbox with toggle button to start automatic updates. 2015-03-04 10:36:59 +01:00
Sascha L. Teichmann
f708a7c44b Added forgotten semikola in JS. 2015-03-04 09:33:07 +01:00
Sascha L. Teichmann
b71f8bd208 Removed the radix 10 from parseInt calls as it is the default. 2015-03-04 08:55:20 +01:00
Sascha L. Teichmann
49c95f15ca Added missing auto update javascript file. Implemented smarter invalidatioon code based on server notification. 2015-03-04 00:39:35 +01:00
Sascha L. Teichmann
0b7c8b6afe Applied rrenkert's patch to have an autoupdating client. 2015-03-03 15:22:00 +01:00
Sascha L. Teichmann
7249a60043 Use "ignore incoming messages" code from the gorilla websocket documentation. 2015-03-03 01:33:12 +01:00
Sascha L. Teichmann
f943919ee6 Implemented the sending of the base tile changes to the connected websocket clients. 2015-03-03 01:13:37 +01:00
Sascha L. Teichmann
83cf9dbaad Added command line flags for websocket support. Added dummy websocket controller. 2015-03-02 14:16:36 +01:00
Sascha L. Teichmann
d871808b92 Little golint nit. 2015-03-02 13:17:52 +01:00
Sascha L. Teichmann
33a53c11da Factored out some common stuff to separate file. 2015-03-02 13:14:29 +01:00
Sascha L. Teichmann
3e0e909a69 Added 'websocket' branch. Added mechanism to forward the coords of the updated base tiles. 2015-03-02 13:10:30 +01:00
Sascha L. Teichmann
003d8cc785 Added support for position hash url support for mtwebmapper (issue #6). 2015-03-01 17:32:46 +01:00
Sascha L. Teichmann
0250a30af4 README.md edited online with Bitbucket 2015-03-01 15:53:32 +00:00
Sascha L. Teichmann
4c39830f17 Refer to Go 1.4.1 binary when compiling mtsatellite. 2015-02-15 19:55:22 +01:00
Sascha L. Teichmann
9dd9f5667f Typo fix. 2014-12-06 14:48:06 +01:00
Sascha L. Teichmann
f7738ff408 Improved wording about our map. 2014-12-06 14:33:25 +01:00
Sascha L. Teichmann
84791b43a6 Add link to our online map. 2014-12-06 14:32:40 +01:00
Sascha L. Teichmann
237e43f0db Mentioned transparency in SETUP. 2014-11-16 13:13:03 +01:00
Sascha L. Teichmann
4ea51eb744 mtwebmapper: Only allow update requests from a white list of remote hosts. Defaults to localhost. To allow all hosts use command line option -u='' 2014-11-15 13:40:39 +01:00
Sascha L. Teichmann
52932b0351 Fixed bogus error handling in change tracking notification. 2014-11-03 18:57:10 +01:00
Sascha L. Teichmann
cf9cbe7087 Fixed hill shading for transparent structures a bit. Still not optimal. 2014-10-28 11:53:18 +01:00
Sascha L. Teichmann
6afed94154 Added profiling for mttilemapper. 2014-10-28 11:51:45 +01:00