545 Commits

Author SHA1 Message Date
Philipp Schaefer
bb7f200547 use in-app layer chooser on desktop mode 2013-05-29 00:57:38 +02:00
Jon Atkins
b0675e5852 simplify and cleanup large portal image dialog
- nicely centered. few tricky css hacks
- minumum width - ready for additional content below the image
- fix & in portal titles from showing as & sequence, etc
2013-05-28 02:01:41 +01:00
Jon Atkins
50b3e0be38 remove some debugging console.log calls left in by mistake 2013-05-27 03:21:35 +01:00
Jon Atkins
372a2b34c8 don't resolve more than 15 names in one request - this is approximately the limit imposed by the server
if more are to be resolved, multiple requests are made. this does increase the odds of hitting the request rate limit, but in that case we'll get http failed requests and the names will be pushed back onto the pending resolve list for next time

fix #323
2013-05-27 03:19:51 +01:00
Jon Atkins
9dc0ac4234 add a limit on the number of map tile data requests merged into a single bucket - the server seems to have some limits on this
yes - it will cause more requests in this case, but that's nicer than just completely failing

fix #320
2013-05-27 02:16:52 +01:00
Jon Atkins
895671d860 the ada refactor/java virus can mean a player owns resonators of a higher level than himself. make sure we don't end up with negative values in this case
fix #322
2013-05-27 01:56:26 +01:00
Jon Atkins
5c9fdc6f61 Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion 2013-05-27 00:36:26 +01:00
Jon Atkins
bfd9f39067 add util function to escape strings for manual building of HTML, and use this for the portal title
fix #319
2013-05-27 00:35:56 +01:00
Jon Atkins
06a1b09af6 Merge pull request #317 from integ3r/alignment-virus
Passcode redemption: Support for Alignment Virus and other item types, tweaks
2013-05-26 15:39:13 -07:00
Jon Atkins
e609c64775 Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion 2013-05-26 19:30:34 +01:00
Jon Atkins
5430992d70 improvements to date formatting
- leading zeros on month/day
- milliseconds in chat tooltips
2013-05-26 19:29:48 +01:00
Philipp Schaefer
d3461b0451 got back long press on portal functionality 2013-05-25 13:39:58 +02:00
Philipp Schaefer
5cc27b70d9 removed forgotten setupBackButton function call 2013-05-25 12:26:53 +02:00
Philipp Schaefer
6e6249f903 * removed JS backstack (not needed anymore)
* removed JSInterface exit method
2013-05-25 12:24:59 +02:00
Morgan Jones
0380893637 Style tweak 2013-05-25 00:36:16 -06:00
Morgan Jones
34c58bae71 Merge git://github.com/jonatkins/ingress-intel-total-conversion into alignment-virus 2013-05-25 00:15:41 -06:00
Morgan Jones
1b2baf5a88 = Redemption tweaks, round 3
* Pass the entire acquired item into resource decoders instead of the attribute in question. Generic 'resource' objects have things we need to examine.
* Formatted support for the `resource' taxonomy (portal keys and JARVIS/ADA). Remove standard 'default' taxonomy in favor of this.
* Let individual items override their own primary key (for example, JARVIS/ADA are both a FLIP_CARD, but we don't want to smash them together)
* Let the server-side item name override the "hard-coded" name in IITC
* Assuming that passcodes can eventually work like portal hacks, add support for the MEDIA and PORTAL_LINK_KEY item types.
* Change plaintext and HTML display for modResources in anticipation of link amplifiers
* Log entire JSON response to the console if we have to guess about items.
* Add more encouragement.
* Add Jarvis/ADA JSON responses, fake media items, and fake portal keys to json_examples.
2013-05-25 00:12:56 -06:00
hastarin
3691402e4a Improved back handling in mobile app. Now more consistant with standard. 2013-05-25 11:58:35 +10:00
Philipp Schaefer
e7a296b2b3 removed wrong semicolon 2013-05-24 16:03:24 +02:00
hastarin
9ce25e7e57 Initial commit of a working Search View. 2013-05-24 15:52:25 +10:00
Jon Atkins
6788e676ea remove now redundant commented out map layers - OSM tiles are now in a plugin 2013-05-23 05:50:44 +01:00
Jon Atkins
140c5c2cb9 re-do request bucket handling - instead of grouping up to four requests together, so large window sizes make more requests, group requests into max 4 blocks
I think this is closer to the stock intel site behaviour, and should vastly reduce requests, especially at high resolutions
2013-05-22 17:35:59 +01:00
Jon Atkins
4f8164ffd7 add direction arrows after compas direction 2013-05-21 05:36:15 +01:00
Jon Atkins
a525fb5144 use the baselayerchange event parameter instead of testing to see if a layer is added to the map 2013-05-20 05:17:11 +01:00
Jon Atkins
52bce7fa31 remove debug console.log, fix comment 2013-05-20 05:16:22 +01:00
Philipp Schaefer
ca51cfbb99 check for android interface before calling functions of it 2013-05-19 18:10:04 +02:00
Philipp Schaefer
6762914b19 Merge branch 'master' of github.com:jonatkins/ingress-intel-total-conversion 2013-05-19 17:15:16 +02:00
Philipp Schaefer
7f723cd559 first version of in-app layer chooser 2013-05-19 17:14:39 +02:00
Jon Atkins
7b574b9ea1 remove restrictions on zoom in getPosition. instead, after a defaault base layer is set, use setZoom(getZoom) to ensure zoom level is valid for this base map 2013-05-19 16:07:10 +01:00
Jon Atkins
653a6cc82d rewrite default base map layer handling. it remembers by name, rather than id (so will work if order changes), and also works if plugins add additional base layers 2013-05-19 15:29:36 +01:00
Jon Atkins
9a30c13413 cache reverse lookups from player name to guid - this prevents the potentially slow iteration throughout localStorage for every lookup 2013-05-19 03:50:47 +01:00
Jon Atkins
ac9312d6f7 destroy and remove dialogs after they're closed - otherwise they remain in the DOM, hidden but there
fix #288
2013-05-18 18:02:13 +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
Xelio
07bf9b1299 Bug fix: Double removal of portalAccessIndicator cause exception when layer is hidden 2013-05-18 14:53:38 +08:00
Xelio
0c836ccfc2 Bug fix: selected portal should not remove when zooming/panning out of range 2013-05-18 14:52:43 +08:00
Jon Atkins
87a0a35f74 have seen a case of GUID type .2 - 'random portal' 2013-05-18 04:13:21 +01:00
Jon Atkins
7b44784c02 fix comment 2013-05-18 01:06:01 +01:00
Jon Atkins
ca76e7ed60 add the concept of portal detail level zoom, separate from map level zoom
this allows us to override the zoom used to retrieve server data, giving options to either retrieve lower zoom levels to reduce the number of requests, or higher zoom levels to retrieve lower level portals from the server
2013-05-17 23:45:14 +01:00
Jon Atkins
b24c7f5d32 work in progress - api for java app to interface with the layer chooser 2013-05-16 22:06:25 +01:00
Jon Atkins
746d4bdc2b possible fix for #271 'undefined' issue 2013-05-16 18:39:24 +01:00
Jon Atkins
73487d7e50 add bing maps link to "map links" dialog
the encoded_name no longer includes the space/brackets - so these are now added in the java app - which makes more sense anyway
unknown names (shouldn't happen) are now named 'unknown' rather than not specified
2013-05-14 22:35:12 +01:00
Jon Atkins
c344c8c857 Merge branch 'patch-bug-portal-render-limit' of https://github.com/Xelio/ingress-intel-total-conversion into Xelio-patch-bug-portal-render-limit 2013-05-14 04:35:31 +01:00
Xelio
3980a19e46 Bug fix in portal render limit handler and add function to clean up left over portals which should be removed after minimum display portal level rise. 2013-05-14 00:26:26 +08:00
Felix Kloft
e03899b96f Small bugfix
(one semicolon which causes one line of text to be ignored)
2013-05-13 17:11:43 +02:00
Jon Atkins
ee589721e6 i'd been given a list of all guid type codes from the ingress android app - so update the comments to list them all 2013-05-13 05:26:42 +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
Jon Atkins
e4ad933bb2 clamp bounds used for map data requests. no point in trying to request data outside +-90, +-180 coordinates, as it's pointless, and the server returns an error code anyway 2013-05-13 01:11:28 +01:00
Jon Atkins
339c7ec21e add utility functions to clamp latitude to +-90.0, and longitude to +-180.0 2013-05-13 01:10:18 +01:00
Jon Atkins
a3b957c967 zoom level 0 isn't impossible - so make it display L8 only portals, like the next few closer zoom levels 2013-05-13 00:38:24 +01:00