40 Commits

Author SHA1 Message Date
Jon Atkins
aa0393c518 niantic updated stock intel to show unclaimed from zoom level 15 and closer - makes 'show more portals' redundant 2015-07-02 00:25:55 +01:00
Jon Atkins
b51052ca0b remove 'show-more-portals' config case - not currently needed, so not messing with zoom level is more stock-like 2015-06-28 21:57:42 +01:00
Jon Atkins
5da190862e niantic brought back the 'no portals, link length limits' for zooms up to 15 again....
also, better warning when failing to extract tile parameters from stock - as if this fails it's probably because the values have changed and IITC will break
2015-06-26 23:11:19 +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
9c487a3001 and yet another update to the fallback defaults....
maybe Niantic should have load-tested the best values in dev before releasing into production, rather than repeatedly changing it so many times?
or at least made it completely controlled by server-side code, so no client updates needed for every experimental change...
2015-06-26 02:13:53 +01:00
Jon Atkins
bb29578c78 more updates chasing reprated Niantic updates
debug function to dump out the details of each zoom level tile parameters
change tile params 'noPortals' to 'hasPortals'
2015-06-25 23:05:04 +01:00
Jon Atkins
38870aba63 more niantic tweaks to tile params, so defaults updated
also fix status bar bug introduced in previous commit
2015-06-25 22:22:49 +01:00
Jon Atkins
9ba440f70d move the minLinkLength stuff into map_data_calc_tools.js - makes more sense there, and ready to be used elsewhere if needed 2015-06-25 21:46:28 +01:00
Jon Atkins
42d5eb4e2f fix for fallback tile sizes - auto-detection broke
will get things working for now...
2015-06-25 20:05:53 +01:00
Jon Atkins
34d13f6559 tweaks for latest niantic update
iitc detects the correct map params anyway, but warns when fallback values are different
also, new data in portal entities - unknown12 (only seen 'null') and index 13 (portal timestamp)
the timestamp is also in the portal details, so this will be handy
2015-06-11 22:35:57 +01:00
Jon Atkins
2fce62117c restopre 'show more portals', but at one level of zoom boost instead of two 2015-05-06 18:28:08 +01:00
Jon Atkins
bb5d263a73 allow max zoom of 21 - two portals 18cm apart only show at z=21 2015-05-06 17:08:20 +01:00
Jon Atkins
658344a832 additional message asking users to direct their 'show more portals' issues towards niantic 2015-04-04 01:05:30 +01:00
Jon Atkins
b4f9c3e2fe add some initialisation for deciding if to use detected tile params or those embedded in the code
console warnings when it fails to detect values from stock, or the internal defaults don't match
disable show-more-portals plugin if it would result in more requests - damn niantic!
2015-04-03 21:20:36 +01:00
Jon Atkins
3e7724afe6 first pass at changing map tile params for latest site update 2015-04-03 20:50:10 +01:00
Jon Atkins
96190be481 extract TILES_PER_EDGE and ZOOM_TO_LEVEL from stock intel
Niantic have been tweaking the values after server overload during Shonin - I expect them to change again...
2015-03-28 18:27:06 +00:00
Jon Atkins
a169176bad map params adjusted due to server overload of shonin anomaly 2015-03-28 16:27:48 +00:00
Jon Atkins
6148ec4258 should have been local variables - no point in polluting the global namespace 2015-02-28 19:43:02 +00:00
Jon Atkins
f3f7a04c4b tweak show-less-portals plugin - show L5 when L4 would by default be in view - jumping straight to L6 was too much
levels L5 to L7 are all one higher (L6 to L8) as before
2015-02-06 22:21:44 +00: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
5d8b68747b update tiles-per-edge to match change to stock site 2014-10-14 18:02:29 +01:00
Jon Atkins
9ab6bea90d first pass at extracting version code from the minified javascript
still needs some work, but will get something working in the test builds for now...
2014-08-14 23:54:36 +01:00
Jon Atkins
abb0fcd638 latest stock site update changed the quadkey construction - updated to match 2014-05-06 01:44:10 +01:00
Jon Atkins
7ee40b5b45 make the 'default intel detail level' act more like the stock map - a partial workaround for some portals not being returned for zoom levels 16/17 sometimes
also, 'show more portals' plugin has less impact in this case too
2014-05-04 03:10:50 +01:00
Jon Atkins
a03014a988 tiles per edge: fallback values changed to match stock site, after they undid their revert 2014-03-20 20:33:14 +00:00
Jon Atkins
e1752954a1 and Niantic revert the changes to tile sizes a few days later... 2014-03-18 22:14:10 +00:00
Jon Atkins
40b74f7dba updated internal values due to stock site changes. by preference we detect the values in the stock site, but these are kept as a fallback 2014-03-14 23:28:12 +00:00
Jon Atkins
4f6631d1f7 make IITC first try to use the TILES_PER_EDGE and ZOOM_TO_LEVEL values from the stock script - only falling back (with a warning) to our pre-defined list on error
this way we automatically follow any changes to these made in the stock site, but have a fallback case in case the stock site renames the variables
2014-03-11 02:29:21 +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
0861d5c35e remove unused function - ingress API no longer uses full bounds-params - it requests by just quadkey now 2014-01-15 19:33:33 +00:00
Mike Castle
b783ef9cf6 Spell check and found a bunch of new comments with typos. 2013-12-02 23:15:02 -08:00
Jon Atkins
1eea47ca99 update code to match stock site changes 2013-10-16
- new munge set
- modified map data tile ID/QK - now based on portal level rather than map zoom
2013-10-16 03:11:19 +01:00
Jon Atkins
92433c5d4b merge patch from #491, that updates things to getThinnedEntitiesV4
also a couple of plugins that were missed
2013-08-16 17:36:17 +01:00
Xelio
b5381603b8 Bug fix: Resonators didn't redraw sometimes after level of portal hide and reshow
And some code simplification.
2013-05-18 17:27:46 +08:00
Paul Tsupikoff
f7f8e1ca94 Rewritten tile request calculation 2013-04-24 12:58:31 +03:00
Jon Atkins
2df9bdc5a7 remove commented out code 2013-04-24 02:15:55 +01:00
goodsoft
d58306ec06 Updated quadkey calculations for new protocol 2013-04-24 03:40:53 +03:00
Stefan Breunig
a07ee0cc3d so others may contribute 2013-02-01 13:11:14 +01:00