724 Commits

Author SHA1 Message Date
Jon Atkins
b9a4f91f39 tweaks to data tile fetching and cached tiles - should end up with fresher data when the niantic servers are struggling 2013-08-08 11:56:00 +01:00
Jon Atkins
a43bd3ef0c fix resonator rendering on zoom after changing to avoid re-rendering unchanged data
this whole area of code could do with some restructuring really - this will do for now though...
2013-08-05 20:10:58 +01:00
Jon Atkins
3d7440b06a add ent[1] - the data modification timestamp, to beforePortalReRender
alsoi include the previous timestamp
for #324
2013-08-05 14:16:49 +01:00
Jon Atkins
54ebbc3896 bump version nimber in preperation for next release
remove maxZoom leaflet setting - as it overrides individual map layer settings - fix #466
ensure map zoom is valid for selected base layer - replicate functionality removed from current leaflet
2013-08-04 07:17:14 +01:00
Inye
55c055425b Avoid using Object.keys(obj).length in hot code paths
Complexity of Object.keys(obj).length is O(n) where n is the number of
object keys. Unfortunately, JavaScript have no built-in means of
determining number of object keys in constant time. Therefore, we have
to count object keys using separate counter variable.

It may look ugly (and indeed it is), but it greatly improves smoothness
and overall feel of IITC.
2013-08-02 20:00:03 +04:00
Jon Atkins
16e15dfb51 first attempt at geodesic circles - for #292 (alsao see #201 and #425) 2013-08-02 07:21:04 +01:00
Jon Atkins
a96d562a94 add overall minZoom and maxZoom limits to the map 2013-07-31 21:56:16 +01:00
Jon Atkins
55036be913 fix game score for team name change 2013-07-31 20:26:03 +01:00
Jon Atkins
f5d8587955 update code for the new internal name for enlightened - was ALIENS, now ENLIGHTENED 2013-07-31 20:15:14 +01:00
Jon Atkins
0a5200b7fa improve handling of deleted entities, and of constructed entities
fix #450
2013-07-31 19:19:47 +01:00
Jon Atkins
4caea29fd3 don't try and display an address when none is available
fix #454
2013-07-28 18:39:12 +01:00
Philipp Schaefer
1e03e60c15 some whitespace fixes 2013-07-27 11:25:58 +02:00
Philipp Schaefer
ab164cfde5 Merge branch 'intents' of git://github.com/fkloft/ingress-intel-total-conversion into fkloft-intents
Conflicts:
	mobile/res/values/strings.xml
2013-07-27 11:23:51 +02:00
fkloft
fa4d4c64f7 Pass title from JavaScript 2013-07-26 23:29:32 +02:00
Jon Atkins
e9ea00cd08 map data tile tweaks. tiles are put into buckets based on a simple tile count, rather than coordinates. should help things when re-requesting failed tiles when the others are cached - and possibly is closer behaviour to the stock intel page 2013-07-25 02:33:08 +01:00
Jon Atkins
5760f9b7a8 force rounding to integer the result of map.getZoom() when calculating the map data zoom
it's not something that sould happen, but it's been seen on mobile (#271) - this should eliminate the issues with portal data this causes
2013-07-25 02:03:41 +01:00
Philipp Schaefer
89846e1a77 get rid of WebRessourceResponse injecting (fix for #437)
- added some kind of splash screen
2013-07-21 20:39:13 +02:00
fkloft
2b7ac5605b Improved permalink/portal link
Now shows a dialog from which you can:
* share the permalink using the standard android share feature
* copy the link to the clipboard
* open the intel map link with an installed browser
* show the map with an installed map application (that supports geo: URIs)
2013-07-21 00:51:21 +02:00
Jon Atkins
1d46cd6b2b portals don't always have field data - prevent exceptions in the code 2013-07-20 20:28:19 +01:00
Jon Atkins
c3576d566b linkedEdges data for portals remains in some cases (when they decay?), so don't process the link data in this case 2013-07-20 20:27:24 +01:00
Jon Atkins
e321b06875 jquery update (i expect) broke $(window).on - $(document).on works instead
also changed guess player levels plugin from using jquery .delegate to .on - as the former is deprecated
2013-07-20 19:42:43 +01:00
Jon Atkins
dbc6ef18df bump jquery versions in use, to match those already included on the stock intel site
(matching stock versions prevents multiple instances being loaded, which might cause issues and/or slow things down)
2013-07-19 22:42:57 +01:00
Jon Atkins
8b6defc2d4 make jquery include URLs protocol relative (i.e. without "https:") - this had been done before (and the comment was there), but got lost at some point 2013-07-19 22:21:23 +01:00
Jon Atkins
f232de3617 fill fields in with geodesic polygons, to match the changes made for links 2013-07-17 22:20:35 +01:00
Jon Atkins
89e2defc33 Merge branch 'master' of https://github.com/qnstie/ingress-intel-total-conversion into qnstie-master 2013-07-17 17:41:18 +01:00
qnstie
9f0d8807df Added L.Geodesic.js library to the build 2013-07-17 13:42:30 +02:00
qnstie
dc6961667c Changed link from polyline to geodesicPolyline 2013-07-17 13:31:46 +02:00
Philipp Schaefer
1038fb142a removed trailing whitespace 2013-07-13 14:02:55 +02:00
fkloft
39ce9102e8 Show resonator status (level/energy) of selected portal in status bar on smartphones 2013-07-13 00:14:02 +02:00
fkloft
5bf8eb7333 Visual tweaks
(mostly CSS, don't show "Portals:" in statusbar on smartphones
2013-07-13 00:12:49 +02:00
fkloft
4162a5bbaf show selected portal's color in mobile status bar 2013-07-12 17:42:27 +02:00
fkloft
08838020a1 show portal load level by color 2013-07-12 17:13:34 +02:00
Jon Atkins
3b7e81c1d5 various tweaks to the new portal details in the dialog 2013-07-10 00:42:29 +01:00
Gabriel Sjöberg
9cf2dd391e Add cover photo submitter, cover photo votes, and portal details to large portal display dialog. 2013-07-09 17:03:19 -05:00
qnstie
5b3220cb98 Extracted portal marker into a separate function
This allows creation of plugins providing alternate portal marker styles and shapes (for third party plugin development). And it makes sense anyway :)
2013-07-07 20:01:03 +02:00
Jon Atkins
40cd3044f0 change to how the 4th link amp combines to calculate portal range - it appears the 3rd + 4th are both 1/4, to give a total of 3 times the range with rare link amps 2013-07-06 19:36:26 +01:00
Philipp Schaefer
135d1f63ad set modal dialog width to auto (height is auto by default) since you can't see all information on a shrinked info dialog (fixes #399) 2013-07-02 12:25:16 +02:00
Philipp Schaefer
255831f4eb let iitcm react on the dialog focused callback 2013-07-02 10:53:03 +02:00
Jon Atkins
d9936ab1d6 display portal mod stats in a more useful format
(however, it doesn't take account of how multiple mods of a type stack - some are linear add, others multiply percentages)
2013-06-28 17:14:35 +01:00
Jon Atkins
0494e6c988 simplify logic for grouping map data requests into buckets - zero advantages seen with various different grouping methods tried
reduce the bucket size limit - same number of requests at normal resolutions, and less timeouts (but more requests) at higher resolutions
2013-06-26 22:04:39 +01:00
Jon Atkins
c552742def add link amp mod range calculation to portal range
(it involves some guessing, as only 'rare' ones have been seen so far)
alternative to #392
part of #374
2013-06-26 21:53:02 +01:00
Jon Atkins
ab3bdcef30 don't treat names resolved from old chat messages as certain - only new ones
this prevents people having a name change from getting inconsistant results as old/new messages are seen
fix #393
2013-06-26 15:15:32 +01:00
Jon Atkins
7061f5f561 cache improvements
- min and max size - expire early if over max size, don't expire if below min size
- increase max cache age to an hour
2013-06-26 15:13:14 +01:00
Jon Atkins
751c2068fe add optional parameter sto allow chat code to specify it's uncertain if a name is right
needed for #393 (but not actually a fix)
2013-06-24 18:09:53 +01: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
Jon Atkins
e9b05d7aa0 order requests to inprove the odds of getting missing tile data when some requests are likely to timeout, by putting uncached tile ids at the start of the request, cached (but stale) at the end 2013-06-24 12:20:16 +01:00
hastarin
a8ca654c23 Bugfixes. 2013-06-21 15:08:44 +10:00
hastarin
e8c73f9f46 Added status bar for mobile version. 2013-06-21 14:46:08 +10:00
Jon Atkins
9e4f6d45b7 reduce cache fresh time from 2 minutes to 1 minute
some experimental bucket selections - commented out
fixed north/south lat variables being backwards. only affected the debug tiles, which coped with it without problems
2013-06-18 05:09:03 +01:00
Jon Atkins
3bdbc1bd39 tweak 2013-06-17 17:27:29 +01:00