85 Commits

Author SHA1 Message Date
nhamer
c1bebcc38d typos 2017-01-18 19:41:23 -08:00
nhamer
f6b26b965b Don't process entity if none returned 2017-01-18 19:40:56 -08:00
Jon Atkins
570f7a0f9a plugin: cache recently loaded portal details and always render on the map 2015-06-29 19:02:11 +01:00
Jon Atkins
1fb27a75c4 pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them 2015-06-29 02:51:13 +01:00
Jon Atkins
f3190731d6 remove the 'hack' that ignored portals below the selected level limit - not needed now Niantic have fixed the mission portal issue
increase the number of items rendered in the render queue batches - should make IITC render a bit faster, especially now that the portals have gone and instead there's a fair amount of duplicate data from links/fields across multiple data tiles
2015-06-27 01:29:06 +01:00
Jon Atkins
6718e0d777 revert the hacky 'level 9999' thing - it hid that Niantic reverted the changes
remove the link distance thing - no longer needed
2015-06-26 02:24:56 +01:00
Jon Atkins
40b92235ea remove portals from the map sooner when the server wouldn't return them
bit hacky... but will do for now until I think of a good way of handling things with the recent changes
2015-06-26 02:15:09 +01:00
Jon Atkins
5b5c6d5947 ensure there's a delay after an empty response from the server
also, shorten error delays from 10 seconds to 5 - no need to be that slow...
2015-05-14 16:32:48 +01:00
Joseph Verburg
aa48e18639 Fix some tiles not getting returned at all by map requests, causing a tile to never be requeued. 2015-04-08 16:36:07 +02:00
Jon Atkins
5845c37daf change tile loading delays to zero. stock intel doesn't wait, and the current tile params for further out zooms need a large number of requests, making any delays here add up quickly 2015-03-28 18:32:40 +00:00
Jon Atkins
c5b068eda1 ignore portals returned in the map data that are below the portal level requested
this shouldn't be needed - the stock intel map completely ignores these so they shouldn't be returned - but since niantic added mission portals to the map they bypass all portal level filtering code, for some reason
2015-03-12 21:33:22 +00:00
Jon Atkins
6fc7bbe4df typo - fix #944 2015-02-09 18:42:59 +00:00
Jon Atkins
57bcb457e4 handle error==RETRY responses from the server a little better - prevents slow refresh after a long idle period when the botguard data has expired 2015-01-31 19:20:48 +00:00
Jon Atkins
f5c5b08a4d the recent increase of TILES_PER_REQUEST means more error: TIMEOUT responses for tiles. they are, again, 'normal'
so reduce the retry delay on these close to the delay used after successful requests.
2014-10-24 01:46:18 +01:00
Jon Atkins
caff9340d3 various tweaks to how IITC requests data tiles from the servers
- change TILES_PER_REQUEST to 25, instead of 10 - to match current stock intel site
- modify the zoom level faking IITC does. it still makes good use of IITC's caching, but no longer switches to a zoom level with larger tiles. recent changes to tile parameters for L8 portals on the standard intel site suggests that it's nicer to the servers to request more, but smaller, tiles, than fewer but larger ones
- restored the 'show less portals when zoomed out' plugin. however, this works differently now. rather than faking the zoom level for larger tiles, it now effectively applies the portal level filter used by the standard site. just as many requests as stock, but much smaller responses with fewer portals, so faster rendering
2014-10-24 00:59:31 +01:00
Jon Atkins
cffdb0cdef fix debug log: it's getEntities now, not getThinnedEntities 2014-10-10 04:34:47 +01:00
Jon Atkins
299ae1cadc niantic have increased the tiles-per-request setting to, at least, 10
(with some experiments of larger values - 25 and 50 - that have been reverted for now)
2014-09-25 20:24:52 +01:00
Jon Atkins
b58aff8a54 remove references to niantic variables in their 'nemesis.' object - not available since they introduced minification 2014-08-15 00:48:58 +01:00
Jon Atkins
368b647114 reduce the delay before repeating a 'error: TIMEOUT' map data request 2014-08-13 03:42:26 +01:00
Jon Atkins
1a200269bd map data requesting: the stock site no longer performs unlimited retries on 'error: TIMEOUT' map data tiles, so update IITC to match
split tiles that are retried into smaller requests - might help things at the server side??? no harm in it...
2014-08-12 18:47:48 +01:00
Jon Atkins
963232a98e niantic are experimenting with different values for 'tiles per request' - so let's be nice and make IITC follow the same setting 2014-08-08 00:50:20 +01:00
Jon Atkins
25f9b9b19b tweaks to render queue - on mobile, increase the delay, rather than decreasing the number of items, to help speed things up 2014-06-23 02:40:31 +01:00
Jon Atkins
b3da632948 allow a higher number of tile retries if the config value exists in the stock site 2014-06-16 17:16:00 +01:00
Jon Atkins
fe2542902c reduce the delay between requests - now we always send 4 at a time, rather than larger batches, a shorter delay is better 2014-06-16 16:39:42 +01:00
Jon Atkins
665dad0bab trying some tweaks to render queue processing... 2014-06-13 21:58:50 +01:00
Jon Atkins
a83688a4c2 niantic have removed all munging from the network protocol, so update IITC to match
improvements could be made to our version handling (currently we just take their version string and assume it'll work, with no checks for changes - needs some thoughts on sensible handling)
2014-05-30 22:42:00 +01:00
Jon Atkins
95ed0ddd7b some refactoring and improvements in rendering
- don't render portals or links outside the bounds. the backend returns lots of link, and some portals, outside of the data tiles
- moved more of the render pass start process inside startRenderPass function, rather than having to call separate functions in the data request code
2014-03-23 01:23:36 +00:00
Jon Atkins
4d72137e12 render queue: when using canvas-based L.Path-s, it's most efficient to draw as much as possible every time - so quick-n-dirty change to the batch limits 2014-03-22 03:42:59 +00:00
Jon Atkins
6b13984468 adjust the timers used at the start of a refresh, so IITC does it's work later. should give users a chance to interact a 2nd time
move the render queue batch size to the class - and use smaller values on mobile
2014-03-21 05:16:07 +00:00
Jon Atkins
8eeec788df experimental: render queue. rather than dumping all retrieved data into the render code immediately, queue it up and feed it in a bit at a time
also, we pause a very short time between processing sections of the queue - should help ensure things are responsive if user interacts while rendering
todo: better status bar updates while queue is being processed
2014-03-21 04:43:33 +00:00
Jon Atkins
584b8bcd72 changes to queue processing timeouts after errors - should be friendlier to the servers when things fail 2014-03-18 22:16:20 +00:00
Jon Atkins
2f7635a175 comment converning cache-related optimisation that might be added 2014-03-09 05:53:53 +00:00
Jon Atkins
b173f778a5 debug tiles: clear on a timer rather than at the end of the requests 2014-03-02 01:33:22 +00:00
Jon Atkins
0a506d3027 debug tile display: remove the 'ok' tiles from screen when the refresh completes - makes it practical to leave the layer on at all times 2014-03-02 01:02:40 +00:00
Jon Atkins
333c1a6daf add tweaks of data retrieval zoom level, to make better use of the cache and be friendlier to the API in some cases
also, default-intel-detail and show-more-portals plugins fixed - the logic has been moved into IITC core, with the plugins just setting flags to change behaviour
2014-02-22 19:30:12 +00:00
Jon Atkins
8ce28334cc internal cleanups on the API used to convert map zoom levels to the parameters needed to generate quadkeys for data tiles.
this should also prevent mixed release plugins/test IITC builds causing issues with it's 'show more portals' plugin
further changes are planned - by lying to the backend about the map zoom to optimise the portal detail level (density) returned and make better use of the data cache. needs some practical experimentation to get good adjustments, and a cleaner API for these plugins
2014-02-22 05:48:52 +00:00
Jon Atkins
9c3e47ec40 protocol changes 2014-02-22 - quadkeys have gone back to using map zoom, rather than portal level, in their names 2014-02-22 02:58:52 +00:00
Jon Atkins
457f4f8049 test: remove code that rendered stale map data tiles from cache before retrieving from the network - will try it for a while and see if it makes things noticably more responsive 2014-02-21 16:37:47 +00:00
Jon Atkins
cdf9c83801 simplify map data request batching - doesn't need to be so complex now we never request more than 4 tiles per request 2014-02-21 07:29:42 +00:00
Jon Atkins
05cd342051 sort the queued tiles by the distance from the centre of the screen
this mirrors the changes to the stock intel site as of 2014-01-13 (and is something i'd been considering before they did this)
2014-01-13 22:25:18 +00:00
Jon Atkins
08dc8ca464 add 'TODO' comment 2014-01-13 20:37:52 +00:00
fkloft
a1d03ec69b mobile: show loading progress in title bar 2014-01-05 16:42:59 +01:00
Jon Atkins
18d5708043 tweaks to the request/retry settings 2013-12-17 03:52:12 +00:00
Jon Atkins
8c810e4e73 decrease retry count on failed requests, and increase delay before retrying. another step to help reduce issues when IITC breaks due to site changes 2013-11-30 05:48:33 +00:00
Jon Atkins
b9c8e9c6c5 new reduced map data: first pass at loading the new format 2013-11-30 04:15:17 +00:00
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
Mike Castle
27806a3be7 Spell check, missed one. 2013-11-23 19:24:43 -08:00
Mike Castle
bba6519860 Spell checking, h-r. 2013-11-23 19:16:20 -08:00
Jon Atkins
10e48fe449 increase parallel requests - this matces behaviour of stock intel site, and speeds things up a bit 2013-11-18 06:59:25 +00:00
Jon Atkins
8f8a2ad8d6 the stock site was updated to only request 4 tiles per request - so match this in iitc
(the response has only managed 4 tiles for a long time, with the rest returning 'timeout' and silently retried)
2013-11-12 06:28:58 +00:00