Commit Graph

667 Commits

Author SHA1 Message Date
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
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
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
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
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
07bf9b1299 Bug fix: Double removal of portalAccessIndicator cause exception when layer is hidden 2013-05-18 14:53:38 +08:00
0c836ccfc2 Bug fix: selected portal should not remove when zooming/panning out of range 2013-05-18 14:52:43 +08:00
87a0a35f74 have seen a case of GUID type .2 - 'random portal' 2013-05-18 04:13:21 +01:00
7b44784c02 fix comment 2013-05-18 01:06:01 +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
b24c7f5d32 work in progress - api for java app to interface with the layer chooser 2013-05-16 22:06:25 +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
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
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
e03899b96f Small bugfix
(one semicolon which causes one line of text to be ignored)
2013-05-13 17:11:43 +02: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
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
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
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
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
43254bb31c Merge branch 'statusbar' of https://github.com/hastarin/ingress-intel-total-conversion into hastarin-statusbar 2013-05-13 00:06:18 +01:00
c713caa36b Merge pull request #270 from hastarin/mobileRenderLimit
Reduced render limit on mobile.
2013-05-12 14:58:57 -07:00
cf5116d75c Reduced render limit on mobile. 2013-05-13 03:10:46 +10:00
9266283684 upgrade leaflet to the master version - taken 2013-05-12 - 3d3e2cd
should fix issues with layer control on mobile, and other improvements
also - the convention for marker filenames has changed from ...@2x.png to ...-2x.png for the double sized ones - so changed our files to match (we had a mix of ...@2x.png and ..._2x.png)
2013-05-12 17:18:58 +01:00
11069d5f8e Added some help popups. 2013-05-12 14:26:57 +10:00
a150d54dd7 Smaller status bar to suit mobile and further tweaked scale bar position for small mobile displays. 2013-05-12 14:14:58 +10:00
cb66801d9f Merge pull request #266 from integ3r/dialog
Dialog fixups: Mobile
2013-05-11 16:10:31 -07:00
59fce850c8 * Code style tweaks 2013-05-11 16:43:57 -06: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
96add49516 notify android when select spinner is opened/closed (fix for #255) 2013-05-11 14:41:15 +02:00
553ecdc61e Merge git://github.com/jonatkins/ingress-intel-total-conversion into dialog 2013-05-10 21:45:34 -06:00
9756bac253 * Fixup: Carelessly swapped collapse and expand callbacks 2013-05-10 21:44:53 -06:00
d1d1fa85ce Merge pull request #252 from Xelio/patch-hook-iitcLoaded
Add 'iitcLoaded' hook to notify that IITC and all plugins loaded.
2013-05-09 20:42:21 -07: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
65783ac0b1 Merge branch 'dialog' of https://github.com/integ3r/ingress-intel-total-conversion into integ3r-dialog 2013-05-10 02:33:21 +01:00
6096640415 add correct version of the sample script 2013-05-10 00:08:14 +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
20ef7acda5 * Fix condition that would rarely cause dialogs to not open properly (dialog wasn't getting destroyed before being replaced) 2013-05-09 01:39:19 -06:00
4b39567e29 * Default dialogs to an empty title
* Fix bug that would cause some singleton dialogs to open several times
* Comment fix
2013-05-09 01:29:48 -06:00
3523abf032 Merge branch 'layerChooser' of https://github.com/hastarin/ingress-intel-total-conversion into hastarin-layerChooser 2013-05-08 21:39:29 +01:00
258aa70213 plugin booting - catch exceptions and log, rather than just crashing 2013-05-08 17:18:50 +01:00
593ec57633 Set maxZoom = 13 for desktop locate button too. 2013-05-09 01:55:36 +10:00
c630277c25 More tweaks to mobile layout.
Known issues:
    - A touch is generating two clicks.  Most noticeable with pan plugin.
    - The pan plugin requires the +/- zoom buttons be enabled.
2013-05-09 01:48:59 +10:00
ff6d261407 Tweaks to mobile for portal_highlighter and others. 2013-05-09 00:50:12 +10:00
6cd3328389 Add 'iitcLoaded' hook to notify that IITC and all plugins loaded. 2013-05-08 20:47:41 +08:00
04851af096 * Remove dialog resizable stuff, it's not tested 2013-05-08 03:48:26 -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