825 Commits

Author SHA1 Message Date
Jon Atkins
2565478c1f add linkedFields data to portal.options.details.portalV2 - it's expected in a few places
(it shouldn't really be stored there - as other than this the data here mirrors precisely that returned from the server)
fix #519
2013-09-02 02:08:39 +01:00
Jon Atkins
7792c80274 increae the initial map data request delay - gives more chance for munge issues to be fixed in the game score update code 2013-08-31 17:44:51 +01:00
Jon Atkins
8448b71fae hacky workaround for request munging issues - check for issues in the updateGameStatus function 2013-08-31 17:44:16 +01:00
Jon Atkins
043690f99b attempt to detect the request munge set that's active by searching through the stock site functions 2013-08-31 16:40:28 +01:00
Jon Atkins
5b6ed4ce50 niantic have 'encrypted/obsfucated/munged' the parameters passed TO requests to the server - and changed the request URL from /rpc/dashboard.method to /r/dashboard.method
for #518
2013-08-31 04:34:37 +01:00
Jon Atkins
e1891f84df reduce the retry count on a non-"error:TIMEOUT" failed request 2013-08-31 01:43:14 +01:00
Jon Atkins
4a9fa8baea attempt to re-create missing links from the portal data
may not work, as this code was work-in-progress when niantic broke the json protocol
2013-08-31 01:42:31 +01:00
Jon Atkins
b8514ef3d0 tweak debug layer colours 2013-08-31 01:41:54 +01:00
Jon Atkins
ccf83e3360 remove 'report portal' link in portal details. niantic now - pretty much - only take reports via the in-app process 2013-08-30 20:30:13 +01:00
Jon Atkins
ff5134e45e remove comments describing a removed hook 2013-08-30 17:40:56 +01:00
Jon Atkins
b958d1b519 restore support for a selected portal in the URL 2013-08-30 06:55:08 +01:00
Jon Atkins
13d247019c re-write map initial position setting. before, if the initial zoom was invalid for the selected layer, things would get stuck in an odd way 2013-08-30 06:54:22 +01:00
Jon Atkins
7b838af6e3 make selecting a portal robust against it not being displayed on the map
(now entirely possible now portal data is independant of display status)
2013-08-30 06:53:41 +01:00
Jon Atkins
5784be6b6f remove special queue clearing on map movestart - things work pretty well without it, and it was causing bugs
may come back and have another look at this later...
2013-08-30 04:11:27 +01:00
Jon Atkins
de3d05fe95 remove entities outside the map request bounds before processing any requests
prevent the selected portal from being removed
re-select the selected portal - should refresh the side bar when data changes
2013-08-30 00:34:07 +01:00
Jon Atkins
ffd0258a7c call the requestFinished hook in the new request handling code - for plugins that need it
also make a request to hook something that doesn't exist a non-fatal error - to reduce plugin breakage for removed hooks
2013-08-29 06:36:48 +01:00
Jon Atkins
90047abee0 remove all signs of portal photo submitter info when there's no photo submitter information supplied
for #514
2013-08-29 01:10:44 +01:00
Jon Atkins
d1ce8870ba add legacy data fields to fields and links 2013-08-29 00:58:43 +01:00
Jon Atkins
8918b9da6f status message updates for new loading code 2013-08-28 22:41:21 +01:00
Jon Atkins
96d3e1ded7 improved request queue handling 2013-08-28 19:34:21 +01:00
Jon Atkins
ccc13b0131 added status update on resume from idle 2013-08-28 16:55:37 +01:00
Jon Atkins
4337fd1f21 add basic status bar updates for new map request code 2013-08-28 16:41:39 +01:00
Jon Atkins
1d354d4e05 set all path options to defaults, to ensure any changes made by highlighters (e.g. dashes used by portal weakness) are reset on a highlighter change 2013-08-28 07:02:27 +01:00
Jon Atkins
7923903544 make the refresh time dependant on the time the previous refresh took to complete, multiplied by a factor (currently times two)
this will ensure that we don't spend most of our time refreshing. also, when the backend servers go slow we naturally back off the refresh rate
2013-08-28 06:19:45 +01:00
Jon Atkins
3f4fae5d99 typo fix 2013-08-28 06:19:34 +01:00
Jon Atkins
0be0e3ea25 backward compatability - make details also avaliable as data form fields 2013-08-28 06:18:55 +01:00
Jon Atkins
e793be9855 Merge branch 'master' into new-map-data 2013-08-28 00:50:58 +01:00
Jon Atkins
39faef2c4c critical bugfix
- don't assume jquery is available when initially processing JS - setupIdle function added
- don't detect portals from a 'turret' entry - use 'portalV2' as the stock site does
- don't try to display the field MU counts when not in the data
2013-08-27 21:29:54 +01:00
Jon Atkins
571a17d84b work-in-progress - committing to switch to other work 2013-08-27 21:04:28 +01:00
Jon Atkins
81d0cb0ed8 create function to get portal image URL from details - and perform any necessary default URL replacement and https conversion 2013-08-27 18:16:02 +01:00
Jon Atkins
563258a897 sort portal layers so they're above links/fields - but only when there's not that many
a lot of redrawing occurs when sorting portals - so only ordering when there's a low number keeps things reasonably fast
2013-08-27 16:31:45 +01:00
Jon Atkins
cae60c0843 bugfix in error retry counting 2013-08-27 05:53:59 +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
0302d76a67 portal detail zoom - don't step out for zoom <= 12 - seems to miss some data as we're displaying things larger than the server expects
also, add a new attempt to fix the portal zoom issue (Lundefined) that occurs on mobile sometimes
2013-08-27 03:45:37 +01:00
Jon Atkins
de432a0aa3 more work on new render code. the new request class is now used - things are almost working right again
still need to change map refresh timer, add back resonators, and write a plugin for field MU count display
2013-08-27 02:43:58 +01:00
Jon Atkins
be97d72158 more work-in-progress... 2013-08-26 17:44:08 +01:00
Jon Atkins
8984ff0285 possible fix for coordinate clamping on the right-hand-side of the map 2013-08-26 17:43:27 +01:00
Jon Atkins
7e3c310543 move map data debug tilers to a separate class 2013-08-26 15:51:16 +01:00
Jon Atkins
01a8dbf4be more work on map data rendering rewrite
marker creation/style changing moved out of rendering code (to allow use from elsewhere, and possible overriding by plugins)
2013-08-26 15:19:21 +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
dff09ed0c1 work-in-progress on render rewrite... 2013-08-23 05:08:08 +01:00
Jon Atkins
91a75a0f2f add in portal click support and highlighters to new code 2013-08-23 04:28:09 +01:00
Jon Atkins
07c28538fd work in progress - first attempt to use new rendering code
lots of things currently broken though...
2013-08-22 22:32:31 +01:00
Jon Atkins
726c82afe9 more work-in-progress. general render class done. no resonators, yet, no render limits, and no attempt to call the code 2013-08-21 19:01:29 +01:00
Jon Atkins
f2582cfcac work-in-progress on map data rewrite 2013-08-21 04:12:02 +01:00
Jon Atkins
fee3a73767 move map data tile cache code into it's own file and clase 2013-08-19 20:55:07 +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
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
Jon Atkins
3ea40952ce niantic are tweaking the web protocol. so far, seen getThinnedEntitiesV2 renamed to V3 - but no changes in request/response format?! 2013-08-13 21:11:32 +01:00
fkloft
84b38bdd82 Always show "sign out" link in IITCm. (no hover on touch screen --> an accidental click would directly log you out) 2013-08-11 19:00:41 +02:00