Commit Graph

104 Commits

Author SHA1 Message Date
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
1e03e60c15 some whitespace fixes 2013-07-27 11:25:58 +02:00
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
fa4d4c64f7 Pass title from JavaScript 2013-07-26 23:29:32 +02:00
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
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
1507347acd remove partial portal zoom level boost from code - moving complete code into a plugin
log data vs map zoom to console
2013-06-15 17:54:27 +01:00
993c830bf0 some refactoring of the zoom level handling. will make it easy and relatively friendly on the servers to boost the map detail level for given zoom levels 2013-06-15 17:07:56 +01:00
f7bd510aae fixed debug console on desktop mode 2013-05-29 11:21:13 +02:00
bb7f200547 use in-app layer chooser on desktop mode 2013-05-29 00:57:38 +02:00
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
5430992d70 improvements to date formatting
- leading zeros on month/day
- milliseconds in chat tooltips
2013-05-26 19:29:48 +01:00
87a0a35f74 have seen a case of GUID type .2 - 'random portal' 2013-05-18 04:13:21 +01:00
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
746d4bdc2b possible fix for #271 'undefined' issue 2013-05-16 18:39:24 +01:00
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
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
339c7ec21e add utility functions to clamp latitude to +-90.0, and longitude to +-180.0 2013-05-13 01:10:18 +01:00
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
99bbcbcb30 * Fix bug that would cause modal dialogs to not show up (modal dialogs aren't draggables)
* Fix issue that broke portal poslinks on mobile
2013-05-11 16:34:41 -06:00
3982c64b2f convert IITC-only cookies to use localStorage instead - otherwise they're sent to the ingress servers and are a clear indentifier of IITC use (and wasteful of data too)
fix #251
2013-05-10 04:40:21 +01:00
35397c0c35 escape strings passed as parameters to function call showPortalPosLinks
fix #259
2013-05-10 03:45:40 +01:00
305aba3a64 * Remove the IITC About dialog's close callback, since it was resizing all other dialogs on screen 2013-05-09 01:44:10 -06:00
dfadadd296 IITC Dialog Overhaul, part 2
Core changes
* window_management.js => panes.js (clarity, distinction from dialogs)
* Make portal preview use dialogs instead of the large preview "window"
* Use `open' callback instead of `create' callback for all dialogs
* Replace collapse/close buttons with themed buttons inspired by the AP Gain plugin
* Dialogs can now gain and lose focus, with changing title bar
* Tweak the Poslinks window to use dialogs
* Add collapseCallback, expandCallback, collapseExpandCallback, focusCallback, and blurCallback
* Fix http <img> in About dialog that caused Chrome to complain

Plugin changes
* guess-player-level 0.4.1: Use dialogs with titles, typo fix
* portal-counts 0.0.8: Use dialogs with titles, typo fix
* portals-list 0.0.12: Don't hijack every single dialog onscreen, add titles, typo fix
* scoreboard 0.1.8: Use dialogs with titles
2013-05-08 03:39:36 -06:00
2bdeb13f45 * Update redeeming.js to take advantage of new dialogs
* Dialogs now support collapsing and expanding
* Fix IITC about window - no longer resizes all onscreen dialogs
2013-05-07 01:42:47 -06:00
917a538a11 Fix comment 2013-05-03 13:14:13 +08:00
50f4004ac5 Fix logic bug in addLayerGroup 2013-05-03 13:10:25 +08:00
61d83567a6 Add function for plugin to add layerGroup and persist display status between session 2013-05-02 14:32:19 +08:00
79af80d0c3 More updates to url links to be compatible with stock intel map 2013-04-30 22:33:07 -07:00
ec50c49717 Merge pull request #217 from Fragger/contribs-to-about
Add contribs to About IITC, fix minor newline issue in loaderMD
2013-04-30 18:23:49 -07:00
a1b76f78bb Merge pull request #214 from Xelio/patch-layer-control-status
Add function to store layer control status (overlay only) in cookie for using in next session.
2013-04-30 11:29:07 -07:00
25b6f239c2 Add contribs to About IITC, fix minor newline issue in loaderMD 2013-04-28 18:55:36 -07:00
2556a1ab8d Add function to store layer control status (overlay only) in cookie for using in next session. 2013-04-28 23:58:53 +08:00
992c0edacb Merge git://github.com/jonatkins/ingress-intel-total-conversion into dev 2013-04-27 13:09:00 -05:00
d42d4bb9ea looks like portals now use type .16, along with .11 and .12 already used 2013-04-27 15:18:27 +01:00
28da9e1746 added query to new portal search intent 2013-04-27 00:47:49 +02:00
a208ba9083 send geo intent instead of gmaps intent on maps link click 2013-04-27 00:08:28 +02:00
be957b3435 change zoom levels for portal level display to match stock intel site - this seems to be enforced by the backend now
fix #199
2013-04-24 13:54:16 +01:00
7600c7a40d Merge git://github.com/jonatkins/ingress-intel-total-conversion into dev 2013-04-23 20:30:11 -05:00
00523fc03d Completely overhauled passcode redemption.
* Show table by default, offer plaintext option for reward copy-pasting
* Use recommendations from https://plus.google.com/115907431535033114848/posts/PVV9j4fTR2m for item plaintext listing
* Break passcode redemption responses and errors into window.REDEEM_* variables
* If an item isn't known, don't simply let it slip into the Aurbis. Log it separately.
* Don't show AP or XM if the passcode didn't give any.
2013-04-23 20:21:48 -05:00
f767b939ad Only need markdown and not GFM for .md files 2013-04-16 20:30:25 -07:00
ae8200d7be Add ATTRIBUTION.md to About IITC pop up 2013-04-16 20:18:21 -07:00
99d52dad8a various cleanups to the portal detail display links
- removed 'donate'
- made case consistant - upper case 1st letter
- shortened excessively long links (IAPS) - but added title text on links with more detailed descriptions
inspired by #135
2013-04-13 21:18:26 +01:00
5f4e0192a0 added MapQuest OSM tiles - these native tiles work much more smoothly than the Google tile layers, so are best for a default 2013-04-13 02:31:47 +01:00
cd7257cc5f Update utils_misc.js 2013-04-11 13:43:03 -07:00
565861f0d8 Update utils_misc.js 2013-04-11 13:39:42 -07:00
6f01852568 Update utils_misc.js 2013-04-11 13:30:34 -07:00
502a7e1637 Update utils_misc.js 2013-04-11 13:18:34 -07:00
3d61ee3884 Update utils_misc.js 2013-04-11 13:15:43 -07:00
15ea225d10 Fix url links for zoom, add ll param support from stock intel link button 2013-04-10 03:49:23 -07:00