71 Commits

Author SHA1 Message Date
Dave Ingram
f9ff49eb26 Merge pull request #977 from Meaglin/removeevents
Added "remove" events for portals/links/fields.
2016-06-13 14:25:06 -07:00
Jon Atkins
b7361c0e05 update placeholder portals if the faction/location have changed 2015-11-11 07:40:45 +00: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
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
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
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
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
Joseph Verburg
de5b689ee6 Added remove events for portals/links/fields. 2015-04-08 17:03:53 +02:00
Jon Atkins
5e8ddb2344 move portal entity array decoding into one place, and share the code for the common array elements
TODO: move link and field entities into here too
2015-03-20 20:54:44 +00:00
Jon Atkins
c5b068eda1 ignore portals returned in the map data that are below the portal level requested
this shouldn't be needed - the stock intel map completely ignores these so they shouldn't be returned - but since niantic added mission portals to the map they bypass all portal level filtering code, for some reason
2015-03-12 21:33:22 +00:00
Jon Atkins
2f67616c5d unknown_10/11 flags - renamed to the mission status they represent 2015-03-12 20:26:15 +00:00
Jon Atkins
7be1575e50 also set 'unknown_11' for map data, as well as portal details 2015-02-26 22:32:31 +00:00
Jon Atkins
6ad6ee56cf remove entities by render bounds - will improve performance, particularly in the case of repeated panning/zooming without letting the download complete 2015-02-22 16:44:37 +00:00
Jon Atkins
b22842a902 include the index 10 portal data value as unknown_10 until we know what it's used for 2015-02-16 19:30:58 +00:00
Jon Atkins
1ac5158dcf remove raw from portal details - not something best to encourage access to
comments concerning new data[10] index in map data
2015-02-11 23:05:08 +00:00
Jon Atkins
171c1830cd remove portal clustering code, and link visibility testing code
now the backend servers are culling the data more aggressively than before, it's probably more efficient to rely on that than try and impose our own additional reduction in detail level
2015-01-31 19:59:15 +00:00
fkloft
bfdedaa642 Fix portal position-to-guid cache
(thanks @dustingraham)
2015-01-15 00:33:33 +01:00
Jon Atkins
cd61e6e74f remove entity type from created data structure - it's not needed 2015-01-10 00:23:03 +00:00
fkloft
8d910a6f1e EXPERIMENTAL: first try at catching up with latest stock intel changes 2015-01-10 00:07:28 +01:00
fkloft
a64f76c862 initial implementation of ornaments 2014-09-25 20:53:05 +02:00
fkloft
e9bd88fe31 implement latlng-to-guid cache 2014-09-13 20:55:40 +02:00
Jon Atkins
88c404eca0 force re-render of the selected portal at the end of map rendering, to ensure any details that depend on map data are correct
for #827
2014-07-14 20:44:20 +01:00
Jon Atkins
2a35330fb7 and shortly after I removed the code that limited drawing of very short links... niantic chance the server and start returning them again!
so probably better with this re-enabled
2014-07-04 19:37:19 +01:00
Jon Atkins
c2ffad80d7 niantic perform agressive filtering of short links - so no point in waisting time in IITC testing link length too 2014-06-16 16:39:11 +01:00
Jon Atkins
95ed0ddd7b some refactoring and improvements in rendering
- don't render portals or links outside the bounds. the backend returns lots of link, and some portals, outside of the data tiles
- moved more of the render pass start process inside startRenderPass function, rather than having to call separate functions in the data request code
2014-03-23 01:23:36 +00:00
Jon Atkins
828e7b7d3d restore the code that prevents rendering short links. seems like the backend isn't removing enough (any?) links again, so they were having a big impact on performance 2014-03-21 05:10:10 +00:00
Jon Atkins
cb8dc7bd41 oops - some debug code was accidentally committed - portals should be brought to front 2014-03-15 00:02:17 +00:00
Jon Atkins
8b7a50729d more agressive portal clustering - seeing if it improves performance 2014-03-02 00:47:02 +00:00
Jon Atkins
6e1008e107 revert ea45d0f447af24115275234403202fe993e0d84c - portal clustering still has some advantages
note: window.Render.prototype.getLinkPixelLength not restored - should have been deleted as part of an earlier change
2014-02-21 16:34:40 +00:00
Jon Atkins
ea45d0f447 remove portal clustering code, that preventing all portals we get data for being drawn to the map
this was an optimisation, as leaflet can be slow when drawing a lot. however, as the backend now limits the data returned to the browser this is less important and probably wastes more time than it saves
for #774
2014-02-21 05:26:52 +00:00
Jon Atkins
8de70d8ec5 now we no longer can reconstruct missing short links from the portal data, and the backend servers already cull short links from the data, there's no point in skipping display of short links 2014-02-21 04:46:42 +00:00
Jon Atkins
045628b007 when clustering portals and only displaying some, sort first by level (highest first) then guid - so when some portals are removed from screen it's the lower level ones first 2014-02-18 08:14:27 +00:00
Jon Atkins
a168991f74 render fields, links and portals in separate passes
this keeps the display order close to correct while data loads
2014-01-28 02:07:30 +00:00
Jon Atkins
980e136508 portal marker scaling: when zoomed out, reduce the scale of portal markers
the stock intel map has done this for a while, so lets try it in IITC
2014-01-26 17:53:10 +00:00
Jon Atkins
3c6468cccb revert bringPortalsToFront change - and add some comments concerning possible better fixes 2013-12-28 08:20:11 +00:00
Jon Atkins
c74971e84e experiment: bring portals to front after every request is rendered, rather than just once at the end
may hurt performance - if so, make it delay before running, or skip if high number of portals
2013-12-28 08:02:09 +00:00
Mike Castle
b783ef9cf6 Spell check and found a bunch of new comments with typos. 2013-12-02 23:15:02 -08:00
Jon Atkins
fad6d18099 bugfix: the new map data format returns unclaimed portals as level 1 - but IITC needs them handled as level 0 2013-12-01 02:55:40 +00:00
Jon Atkins
c197f74945 change portal map data storage to match the method used for links/fields
the detailed portal data, now retreived separately from the map, will be handled by separate code, and not stored within the portals
2013-11-30 21:06:02 +00:00
Jon Atkins
b9c8e9c6c5 new reduced map data: first pass at loading the new format 2013-11-30 04:15:17 +00:00
Mike Castle
4a9b13eade Spell checking, s-z, plus a couple of missed ones. 2013-11-24 00:19:25 -08:00
Mike Castle
27bb6f058e Spell checking, d-g. 2013-11-22 23:31:05 -08:00
Mike Castle
c31fa3d46d Spell checking, a-c. 2013-11-22 20:14:23 -08:00
Jon Atkins
53d66ee57f adjust the portal bring to front code so that artifact portals are above all others 2013-11-10 04:05:17 +00:00
Jon Atkins
a595c2f11d artifacts:
- like the selected portal, are not removed when off screen/below min level
- shard/target details shown on portal details for jarvis shards
2013-11-08 06:09:24 +00:00
Jon Atkins
e7309000e0 only remove links if they are in the layer 2013-10-13 19:40:54 +01:00
Jon Atkins
aad3c77ff9 add linkAdded and fieldAdded hooks, to mirror the portalAdded hook 2013-09-17 07:33:14 +01:00
Jon Atkins
79cd0132e7 add comment as a reminder of possible future work to clear 'faked' links earlier - if possible 2013-09-14 08:29:16 +01:00