146 Commits

Author SHA1 Message Date
Jon Atkins
6797cf7e8b full date+time (with optional milliseconds) always formatted in 24h format 2014-02-05 05:39:20 +00:00
Jon Atkins
ad5df28f37 undefimned fefault to true, rather than false, when adding a layer - more likely whats wanted 2014-01-20 08:22:59 +00:00
Jon Atkins
7997c9c8e3 change the commented out list of zoom to portal level mappings to match those in the intel site update of 2014-01-06
IITC still drops a zoom level slightly sooner at this time, but not so much now
(were niantic inspired by IITC here?)
2014-01-07 08:12:20 +00:00
Jon Atkins
ba33e28675 change digits function to use unicode 'thin space' as thousands seperator 2013-12-18 22:41:55 +00:00
Philipp Schaefer
58b85e4c24 new actionbar title for permalink 2013-12-10 22:14:24 +01:00
Jon Atkins
9048c6d710 tweaked default portal detail levels to show L7 portals one more step out. this helps seeing the larger-scale links and fields
IITC still switches to L8 portals one level sooner than default intel though - and this seems about right for the current level of portals commonly seen
2013-12-01 18:22:53 +00:00
Jon Atkins
f22d185b5b updates to the portal detail level handling
- iitc now defaults to lower detail than the standard intel site when zoomed out - it loads much faster, shows more than enough for general use, and is less likely to trigger 'excessive requests' issues
- show more portals plugin: updated for interface changes
- show-less-portals-zoomed-out: deleted (this is now the IITC default)
- new plugin: default-intel-detail - restores the original IITC behaviour on zoom to portal detail level mapping. not recommended

for #656 number 3
2013-11-24 04:59:41 +00:00
Jon Atkins
1f25428388 Merge pull request #657 from nexushoratio/to-push
Spell checking, h-r.
2013-11-23 19:35:54 -08:00
Mike Castle
bba6519860 Spell checking, h-r. 2013-11-23 19:16:20 -08:00
Jon Atkins
47d453793c re-order the common method name & version parameters in the JSON requests to match the stock intel site
for #656
2013-11-24 01:48:00 +00:00
Jon Atkins
91c561b8c5 try to use the stock intel site map zoom->detail level loopup, to allow that to be changed at the Niantic end and IITC to match
catch errors and fallback to the currently known values
(is this a good idea? good question...)
2013-11-13 00:09:13 +00:00
Jon Atkins
5ae2dce46e first attempt at regular expressions to extract munged parameters from stock site javascript 2013-11-12 08:41:00 +00:00
Jon Atkins
df3a8adcb2 add portal age, in days/hours/etc to tooltip along with existing capture timestamp in portal info panel 2013-11-10 21:39:57 +00:00
Jon Atkins
6d24279106 moved request parameter munging code+data into a new file, in preperation for cleaning things up 2013-11-10 02:36:40 +00:00
Philipp Schaefer
8a8aa1b4d3 added function to detect touch-devices 2013-11-08 19:50:59 +01:00
Jon Atkins
52a5b231ed new munge set for 2013-11-07 2013-11-08 00:36:15 +00:00
Jon Atkins
752eb65b8e new munge set - 2013-11-06 2013-11-06 21:14:43 +00:00
Philipp Schaefer
1d838568a0 use correct function name in if statement 2013-10-31 00:11:26 +01:00
Philipp Schaefer
bb4d57acad - added getVersionName() to JSInterface
- use versionName in IITC About dialog
2013-10-30 23:21:27 +01:00
Jon Atkins
e7fe4bb1dd first pass at a fix for protocol changes - #618 2013-10-29 20:29:08 +00:00
Jon Atkins
9dabc33770 modify plugin wrapper, so build-script injected macros in the wrapper are in a more obvious place, so 3rd party plugin authors are less likely to make mistakes here when working outside the build.py environment
tweak the about screen to display non-standard plugins using the new interface better
2013-10-29 02:43:56 +00:00
Jon Atkins
318cea2e9a add a list of the active plugins to the about dialog, listing the version, etc from the new plugin interface changes
also use the new versin data supplied by grease/tampermonkey for the main script version display
2013-10-29 02:09:41 +00:00
fkloft
8be3c99abf Add workaround for touch events (and remove other workaround that didn't work)
Leaflet doesn't handle touchcancel events in L.Draggable._onDown. Workaround is similar to 1cecbe7f440249ca68f4f6fef3948032e61843ac
2013-10-19 19:04:42 +02:00
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