51 Commits

Author SHA1 Message Date
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
Jon Atkins
01fe9bf51c only add link entities to the layer if they're long enough to be visible
an improvement on 4838de6788ad27bbf6357e1ac9099744483a9e01 to prevent excessive links being drawn when lots of portals are loaded
2013-09-14 07:31:13 +01:00
Jon Atkins
4838de6788 create missing link data from portal link info - so short links not sent are shown in the map
note: need to add code to hide short links from the map - and update the shown/hidden links after a zoom
(similar to the portal cluster showing/hiding portals after a zoom)
2013-09-13 23:14:19 +01:00
Jon Atkins
ac6a235564 first stage of having faction-specific layers - portals, links and fields are now a layer group consisting of three faction-specific leaflet LayerGroups
also, move load.js from directly embedded in boot.js into an external file
2013-09-12 03:07:25 +01:00
Jon Atkins
543e586723 make (portals/lihnks/fields)Layers private to IITC core again - they're not for plugins
now only some portals are drawn to the map it's OK to bring them all to front at the end of the render
use larger squares for portal clustering on mobile - as the portal markers are larger
2013-09-08 20:43:23 +01:00
Jon Atkins
7d3ca0972b better selected portal handling
- ensure the selected portal isn't deleted when it isn't in the map data (e.g. due to zoom level)
- always show the selected portal on the map, even if the high density clustering code would have removed it
- deselect the selected portal, and clear the details bar, in the rare instance of the portal being deleted server-side (i.e. in the deletedEntities list)
2013-09-05 22:14:52 +01:00
Jon Atkins
98265766ec limit portals drawn to the map in dense areas, to avoid slowing down leaflet too much
unfortunately, this wasn't as much of a speed boost as i'd hoped. just downloading/processing the data for 20,000+ portals from the server, even if only 2000 are displayed, still takes a LONG time
for #526
2013-09-03 16:24:21 +01:00
Jon Atkins
d976a8c033 on the portalAdded event, include a previousDetails parameter when we're changing an existing portals data
for #504
2013-09-03 04:52:10 +01:00
Jon Atkins
2565478c1f add linkedFields data to portal.options.details.portalV2 - it's expected in a few places
(it shouldn't really be stored there - as other than this the data here mirrors precisely that returned from the server)
fix #519
2013-09-02 02:08:39 +01:00
Jon Atkins
4a9fa8baea attempt to re-create missing links from the portal data
may not work, as this code was work-in-progress when niantic broke the json protocol
2013-08-31 01:42:31 +01:00
Jon Atkins
b958d1b519 restore support for a selected portal in the URL 2013-08-30 06:55:08 +01:00
Jon Atkins
de3d05fe95 remove entities outside the map request bounds before processing any requests
prevent the selected portal from being removed
re-select the selected portal - should refresh the side bar when data changes
2013-08-30 00:34:07 +01:00
Jon Atkins
d1ce8870ba add legacy data fields to fields and links 2013-08-29 00:58:43 +01:00
Jon Atkins
0be0e3ea25 backward compatability - make details also avaliable as data form fields 2013-08-28 06:18:55 +01:00
Jon Atkins
563258a897 sort portal layers so they're above links/fields - but only when there's not that many
a lot of redrawing occurs when sorting portals - so only ordering when there's a low number keeps things reasonably fast
2013-08-27 16:31:45 +01:00
Jon Atkins
be97d72158 more work-in-progress... 2013-08-26 17:44:08 +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
dff09ed0c1 work-in-progress on render rewrite... 2013-08-23 05:08:08 +01:00
Jon Atkins
91a75a0f2f add in portal click support and highlighters to new code 2013-08-23 04:28:09 +01:00
Jon Atkins
07c28538fd work in progress - first attempt to use new rendering code
lots of things currently broken though...
2013-08-22 22:32:31 +01:00
Jon Atkins
726c82afe9 more work-in-progress. general render class done. no resonators, yet, no render limits, and no attempt to call the code 2013-08-21 19:01:29 +01:00