29 Commits

Author SHA1 Message Date
Jon Atkins
f22d185b5b updates to the portal detail level handling
- iitc now defaults to lower detail than the standard intel site when zoomed out - it loads much faster, shows more than enough for general use, and is less likely to trigger 'excessive requests' issues
- show more portals plugin: updated for interface changes
- show-less-portals-zoomed-out: deleted (this is now the IITC default)
- new plugin: default-intel-detail - restores the original IITC behaviour on zoom to portal detail level mapping. not recommended

for #656 number 3
2013-11-24 04:59:41 +00:00
Jon Atkins
571a17d84b work-in-progress - committing to switch to other work 2013-08-27 21:04:28 +01:00
Jon Atkins
dc41671279 map data now handles refreshes itself. this is so it can ensure that it doesn't start the refresh timer until all requests are complete
this avoids the situation where map data requests are slow enough that requests get aborted before a complete refresh has been done
2013-08-27 05:42:59 +01:00
Jon Atkins
3c90960e4c work-in-progress - checking in while looking at other code on master. may be broken 2013-08-25 17:50:28 +01:00
Jon Atkins
3f1b8ba47f increase refresh timeout considerably when zoomed out. this will reduce requests to the servers when lots of data is visible
also, with the new higher tile count when zoomed out (#491) it reduces the odds of a new refresh starting before the old ones have finished
2013-08-16 17:41:25 +01:00
fkloft
5bf8eb7333 Visual tweaks
(mostly CSS, don't show "Portals:" in statusbar on smartphones
2013-07-13 00:12:49 +02:00
fkloft
08838020a1 show portal load level by color 2013-07-12 17:13:34 +02:00
Jon Atkins
8a71f7fdf0 map status improvements, reporting status of cache. basic 'error/out of date/up to date' message, and tool tip with tile counts
for #394
2013-06-24 16:15:44 +01:00
hastarin
e8c73f9f46 Added status bar for mobile version. 2013-06-21 14:46:08 +10:00
Jon Atkins
0b1957464b idle handling - treat the window being hidden as idle, even if the idle time wasn't reached 2013-06-15 19:29:16 +01:00
Jon Atkins
3d324a8730 idle - fix log to refer to seconds rather than minutes 2013-06-15 19:16:31 +01:00
Jon Atkins
94fbf5ba08 fix enabling/disabling of layer chooser portal levels so it works correctly - was broken at L8 2013-05-13 04:12:02 +01:00
Jon Atkins
66e6502d50 minor status bar tweaks
- make L8 not show L8+
- add a little margin between the level info and the map status - may need reducing a little for mobile
- indentation fixes, minor cleanups
2013-05-13 01:28:38 +01:00
hastarin
11069d5f8e Added some help popups. 2013-05-12 14:26:57 +10:00
hastarin
a150d54dd7 Smaller status bar to suit mobile and further tweaked scale bar position for small mobile displays. 2013-05-12 14:14:58 +10:00
Jon Atkins
7248b17ea8 refresh improvements
- cancel existing refrest timer on start zoom/drag
- add a manual refresh option into the status box when idle
2013-05-06 23:08:44 +01:00
Jon Atkins
308459178d improve refresh handling
- increase timeout on zoom/move end to 0.8 seconds
- prevent repeated refreshes faster than every 5 seconds
- delay initial refresh on load - should prevent immediate refresh after page load

fix #200
2013-05-01 01:57:02 +01:00
Xelio
4113991201 Code restructure 3 2013-03-01 15:31:15 +08:00
Stefan Breunig
360f6f8336 rework chat handling completely
The old system was getting too complicated to add new features to.
The new one should be easier to understand and will be explained
below. This patch should fix #140 and fix #16.

There are several places where new data requests may come from:
- chat.needMoreMessages checks if we are scrolled too far up or
  there is no scrollbar. It then requests new messages.
- scrolling up
- switching the chat tab via chat.chooser
- auto refresh
- once on boot
The latter two always request both types of chat.

Faction and public are handled the same way. Public is later split
into categories. I will explain the faction chat here because it’s
easier.

It starts in chat.requestFaction. This will initialize the query to
the server for data. The exact query is determined by chat.
genPostData. There can only be one faction chat request at a time.
Clearing on map move is handled automatically in code/requests.js.

Let’s assume the data query is successful. It is now passed to
chat.handleFaction which runs some basic checks before the data is
processed and stored in chat._factionData. This is done by chat.
writeDataToHash. The hash keys are the message GUIDs to avoid
duplicates. The hash values are an array of timestamp, processed
message and other meta data.

There is only one way to render faction chat, so data is directly
handed to chat.renderFaction which immediately hands it to chat
.renderData. renderData discards the GUIDs and sorts the values
by their timestamp. It then iterates over the data to insert
date break lines and finally renders the data in the DOM. It also
does some magic to keep the correct scrolling position.

Chat data will be cleared on map move or zoom. However, the
display is not refreshed, so the old, invalid chat data is still
displayed. Only once the data query is finished the data is
rendered. The upside is that small map operations within your
local area appear to never lose their chat data. Downside is that
there’s invalid chat for some time when changing cities.
2013-02-13 02:52:27 +01:00
Stefan Breunig
4a45570f40 make more use of the empty space below the sidebar now that there’s a map rendered behind it all the time 2013-02-11 12:10:40 +01:00
Stefan Breunig
f5edc84635 add ability to filter by portal level. You can access the feature from the layer selector just as before. Fixes #8 and some of #12 2013-02-08 17:39:37 +01:00
Stefan Breunig
71bfeff678 remove array with portal details references that might have been leaking. Instead, store the details with the rendered portals so removal is handled automatically 2013-02-04 16:15:25 +01:00
Stefan Breunig
f85a3b2443 revert last commit, it broke scrolling. also replace expensive CSS rules with differen solution 2013-02-04 14:21:49 +01:00
Stefan Breunig
f92c963a54 finish chat feature; hide low level portal on zoom out; introduce render limit 2013-02-04 02:52:24 +01:00
Stefan Breunig
ecfaca7f9b more chat related stuff. public user chat and message posting is still missing though 2013-02-03 19:44:35 +01:00
Stefan Breunig
b7f1270ff6 make faction chat display almost work 2013-02-03 13:19:56 +01:00
Stefan Breunig
25d6b4cdc5 preliminary chat support 2013-02-01 22:27:43 +01:00
Stefan Breunig
50d21ce03a display which portals are being requested 2013-02-01 15:36:42 +01:00
Stefan Breunig
a07ee0cc3d so others may contribute 2013-02-01 13:11:14 +01:00