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
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
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
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
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
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
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
b958d1b519
restore support for a selected portal in the URL
2013-08-30 06:55:08 +01:00
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
d1ce8870ba
add legacy data fields to fields and links
2013-08-29 00:58:43 +01:00
0be0e3ea25
backward compatability - make details also avaliable as data form fields
2013-08-28 06:18:55 +01:00
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
be97d72158
more work-in-progress...
2013-08-26 17:44:08 +01:00
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
dff09ed0c1
work-in-progress on render rewrite...
2013-08-23 05:08:08 +01:00
91a75a0f2f
add in portal click support and highlighters to new code
2013-08-23 04:28:09 +01:00
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
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
f2582cfcac
work-in-progress on map data rewrite
2013-08-21 04:12:02 +01:00