123 Commits

Author SHA1 Message Date
fkloft
53874ab887 Avoid errors in stock JS 2013-10-19 15:36:14 +02: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
Philipp Schaefer
72620ed668 got rid of redundant code 2013-10-02 23:40:51 +02:00
Jon Atkins
80157b9875 another mungs set was pushed live. update the code
also reordered munge list to match the order found in the stock page (makes it easier to update) and tweaked the code that detects and auto-tries munge sets
2013-10-01 01:02:08 +01:00
Jon Atkins
690b5d7e62 factionOnly was not correct - had mis-entered this mapping (and was already there for ascendingTimestampOrder - it's real meaning) 2013-09-30 23:23:13 +01:00
Jon Atkins
c82cd14641 first attempt at updating munge parameters for new niantic intel site update
have commented out old munges for now - they don't include parameters needed in some new requests, so are unlikely to be used again
for #589
2013-09-30 22:43:35 +01:00
Jon Atkins
54997ac9bc add portal hack counts/cooldown time, and mitigation values, to the portal details panel 2013-09-19 00:51:28 +01:00
Jon Atkins
af0bf6e6df also use munged RPC name in URL - as that's what the stock javescript does (as far as I can tell - it's stopped returning this munged version for now)
for #552
2013-09-13 03:34:52 +01:00
Jon Atkins
e9d173402b update munge sets for new one seen in the wild
also attempt to munge method names. this has not been tested though, as only my cron job has seen the new munge sets, not the browser
for #552
2013-09-13 00:12:54 +01:00
Jon Atkins
2f96b9d07c update lat/lng clamping, to take account of the map projection not going beyond 85 degrees north/south 2013-09-05 22:40:23 +01:00
Jon Atkins
6e808e12a9 remove dead code
- guid to type - unused, and not a good way of doing the test
- resonator settings - it's now a separate plugin
2013-09-03 16:56:30 +01:00
Jon Atkins
c0015b16cc add a missing munge for ascendingTimestampOrder
(we don't currently use it so it was missed)
2013-09-03 16:23:22 +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
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
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
8984ff0285 possible fix for coordinate clamping on the right-hand-side of the map 2013-08-26 17:43:27 +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
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
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
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
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
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
Jon Atkins
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
Philipp Schaefer
f7bd510aae fixed debug console on desktop mode 2013-05-29 11:21:13 +02:00
Philipp Schaefer
bb7f200547 use in-app layer chooser on desktop mode 2013-05-29 00:57:38 +02: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
5430992d70 improvements to date formatting
- leading zeros on month/day
- milliseconds in chat tooltips
2013-05-26 19:29:48 +01:00
Jon Atkins
87a0a35f74 have seen a case of GUID type .2 - 'random portal' 2013-05-18 04:13:21 +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
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
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
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
Morgan Jones
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
Jon Atkins
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
Jon Atkins
35397c0c35 escape strings passed as parameters to function call showPortalPosLinks
fix #259
2013-05-10 03:45:40 +01:00
Morgan Jones
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
Morgan Jones
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
Morgan Jones
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
Xelio
917a538a11 Fix comment 2013-05-03 13:14:13 +08:00
Xelio
50f4004ac5 Fix logic bug in addLayerGroup 2013-05-03 13:10:25 +08:00
Xelio
61d83567a6 Add function for plugin to add layerGroup and persist display status between session 2013-05-02 14:32:19 +08:00
Kevin
79af80d0c3 More updates to url links to be compatible with stock intel map 2013-04-30 22:33:07 -07:00
Jon Atkins
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
Jon Atkins
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