1179 Commits

Author SHA1 Message Date
T. Thiery
05a84c6630 Add removeHook method.
- Removes a previously attached hook.
- Must be the SAME function to unregister.
2015-10-10 23:38:05 +02:00
Jon Atkins
6fd11aee16 fix detecting version string 2015-09-12 10:54:25 +01:00
Jon Atkins
5c43225642 create placeholder portals from the field vertices
they should already be created from links, but it's handy to select anchors of ghost fields, and there's the odd edge case where the links were too short for some edges of a field
2015-07-26 08:12:14 +01:00
Jon Atkins
ed0cedfc81 placeholder portals - default style is thinner and dashed outline, to distinguish them from other low level portals
handy when panning around when portals are visible, as placeholders will still exist for links before data loading is complete
2015-07-20 09:34:03 +01:00
Jon Atkins
12f84721fa why bother going through the artifact layers to get the target data - it's already in the portal details!! 2015-07-10 08:14:56 +01:00
Jon Atkins
c859a144f9 artifact: niantic finally removed the old artifact API - we now have to use the far less useful new one
re-did the display of target/shard on the portal details - better like this I think
2015-07-10 07:51:28 +01:00
Jon Atkins
aca3799a6a ignore server-side faked links, that Niantic generate from the field data
they're not useful - and it would make more sense to do it client-side if there was a need for it
2015-07-07 22:51:05 +01:00
fkloft
c922ade636 Fix for portal search 2015-07-04 16:31:04 +02:00
Jon Atkins
aa0393c518 niantic updated stock intel to show unclaimed from zoom level 15 and closer - makes 'show more portals' redundant 2015-07-02 00:25:55 +01:00
Jon Atkins
282e184f56 fix warning/debug break on details passed to summary decode 2015-07-01 11:59:44 +01:00
Jon Atkins
570f7a0f9a plugin: cache recently loaded portal details and always render on the map 2015-06-29 19:02:11 +01:00
Jon Atkins
02ac86fc00 remove some long-dead code for portal titles - and fix it so a title:null doesn't break IITC 2015-06-29 17:09:56 +01:00
Jon Atkins
1fb27a75c4 pass loaded portal details via a hook into the portal render code - so placeholder portals get updated (highlighters, etc) as you view them 2015-06-29 02:51:13 +01:00
Jon Atkins
b51052ca0b remove 'show-more-portals' config case - not currently needed, so not messing with zoom level is more stock-like 2015-06-28 21:57:42 +01:00
Jon Atkins
e0e6fd5c48 don't remove portals by level when starting a render pass
- unclaimed are shown when we ask for L1
- helps preserve more data as you zoom out and links create 'placeholder' portals we already have more data for
2015-06-28 21:56:42 +01:00
Jon Atkins
8f1759d7c3 allow portal highlighters for placeholder portals - several (e.g. uniques) work just fine
fix several other highlighters to check for required data on portals
2015-06-28 21:49:02 +01:00
Jon Atkins
00b546cb98 placeholder portals created from link ends
surprisingly few issues, but i'm sure quite a few plugins break badly
2015-06-28 19:14:17 +01:00
Jon Atkins
701f09db58 start of work on placeholder portals from link data
not yet working...
2015-06-27 05:44:54 +01:00
Jon Atkins
f3190731d6 remove the 'hack' that ignored portals below the selected level limit - not needed now Niantic have fixed the mission portal issue
increase the number of items rendered in the render queue batches - should make IITC render a bit faster, especially now that the portals have gone and instead there's a fair amount of duplicate data from links/fields across multiple data tiles
2015-06-27 01:29:06 +01:00
Jon Atkins
5da190862e niantic brought back the 'no portals, link length limits' for zooms up to 15 again....
also, better warning when failing to extract tile parameters from stock - as if this fails it's probably because the values have changed and IITC will break
2015-06-26 23:11:19 +01:00
Jon Atkins
6718e0d777 revert the hacky 'level 9999' thing - it hid that Niantic reverted the changes
remove the link distance thing - no longer needed
2015-06-26 02:24:56 +01:00
Jon Atkins
40b92235ea remove portals from the map sooner when the server wouldn't return them
bit hacky... but will do for now until I think of a good way of handling things with the recent changes
2015-06-26 02:15:09 +01:00
Jon Atkins
9c487a3001 and yet another update to the fallback defaults....
maybe Niantic should have load-tested the best values in dev before releasing into production, rather than repeatedly changing it so many times?
or at least made it completely controlled by server-side code, so no client updates needed for every experimental change...
2015-06-26 02:13:53 +01:00
Jon Atkins
bb29578c78 more updates chasing reprated Niantic updates
debug function to dump out the details of each zoom level tile parameters
change tile params 'noPortals' to 'hasPortals'
2015-06-25 23:05:04 +01:00
Jon Atkins
38870aba63 more niantic tweaks to tile params, so defaults updated
also fix status bar bug introduced in previous commit
2015-06-25 22:22:49 +01:00
Jon Atkins
9ba440f70d move the minLinkLength stuff into map_data_calc_tools.js - makes more sense there, and ready to be used elsewhere if needed 2015-06-25 21:46:28 +01:00
Jon Atkins
58a512823f quick-n-dirty display of min link length instead of portal level for zoom levels <= 14
fix detection of tiles per edge params - array was shorter than before
2015-06-25 20:31:00 +01:00
Jon Atkins
42d5eb4e2f fix for fallback tile sizes - auto-detection broke
will get things working for now...
2015-06-25 20:05:53 +01:00
fkloft
3396cc7a27 Set title in genFourColumnTable 2015-06-23 20:05:35 +02:00
fkloft
a7387e3f4b Support for ULTRA_LINK_AMPs 2015-06-23 20:05:35 +02:00
Jon Atkins
bd13278ec0 add comments concerning artifact changes - will double check once the flaky niantic update sorts itself out 2015-06-13 10:20:16 +01:00
Jon Atkins
34d13f6559 tweaks for latest niantic update
iitc detects the correct map params anyway, but warns when fallback values are different
also, new data in portal entities - unknown12 (only seen 'null') and index 13 (portal timestamp)
the timestamp is also in the portal details, so this will be handy
2015-06-11 22:35:57 +01:00
Jon Atkins
44162172a9 artifact details are now returned in the selected portal details - parse them
[not yet used anywhere though...]
2015-05-29 05:35:08 +01:00
Jon Atkins
238bef037b fix for niantic site update 2015-05-27 - botguard has been removed! 2015-05-27 07:08:43 +01:00
Jon Atkins
f4f656dcd2 artifacts: comment concerning the new API added to stock intel. not yet used by stock as far as I can tell, and the existing API still exists and is used... 2015-05-22 01:49:01 +01:00
Jon Atkins
aad6f3cd70 add callback to create point features for search results - the default leaflet icon won't work (and would be the wrong colour anyway)
fix #998
2015-05-14 16:41:18 +01:00
Jon Atkins
5b5c6d5947 ensure there's a delay after an empty response from the server
also, shorten error delays from 10 seconds to 5 - no need to be that slow...
2015-05-14 16:32:48 +01:00
Jon Atkins
2fce62117c restopre 'show more portals', but at one level of zoom boost instead of two 2015-05-06 18:28:08 +01:00
Jon Atkins
bb5d263a73 allow max zoom of 21 - two portals 18cm apart only show at z=21 2015-05-06 17:08:20 +01:00
Jon Atkins
d9abda87f3 remove confirm prompt on server-returned javascript
more people ask about what this prompt is about, and answering 'no' generally breaks botguard at this point.

if you don't like the possibility of IITC running server-returned code, then disable the botguard interface completely - we're already running it on page load, so there's no more risk doing it here too
2015-04-27 21:56:23 +01:00
Jon Atkins
439fcae210 artifacts: lightman shards (guessed - but image URLs work so probably OK) 2015-04-22 02:48:08 +01:00
fkloft
2933f596e9 [core] small changes to cookie handling
- dynamic cookie expiration date
- remove cookie cache (which is not updated when a cookie is set)
2015-04-13 21:58:05 +02:00
Joseph Verburg
aa48e18639 Fix some tiles not getting returned at all by map requests, causing a tile to never be requeued. 2015-04-08 16:36:07 +02:00
Jon Atkins
658344a832 additional message asking users to direct their 'show more portals' issues towards niantic 2015-04-04 01:05:30 +01:00
Jon Atkins
2e906b41f0 as well as 9000 and 36000, allow the interbediate 18000 when detecting map tile params
this value was live for a short period of time, and they may revert back to it
2015-04-03 22:35:05 +01:00
Jon Atkins
b4f9c3e2fe add some initialisation for deciding if to use detected tile params or those embedded in the code
console warnings when it fails to detect values from stock, or the internal defaults don't match
disable show-more-portals plugin if it would result in more requests - damn niantic!
2015-04-03 21:20:36 +01:00
Jon Atkins
3e7724afe6 first pass at changing map tile params for latest site update 2015-04-03 20:50:10 +01:00
Jon Atkins
5845c37daf change tile loading delays to zero. stock intel doesn't wait, and the current tile params for further out zooms need a large number of requests, making any delays here add up quickly 2015-03-28 18:32:40 +00:00
Jon Atkins
96190be481 extract TILES_PER_EDGE and ZOOM_TO_LEVEL from stock intel
Niantic have been tweaking the values after server overload during Shonin - I expect them to change again...
2015-03-28 18:27:06 +00:00
Jon Atkins
a169176bad map params adjusted due to server overload of shonin anomaly 2015-03-28 16:27:48 +00:00