plugin: cache recently loaded portal details and always render on the map

This commit is contained in:
Jon Atkins
2015-06-29 19:02:11 +01:00
parent 02ac86fc00
commit 570f7a0f9a
3 changed files with 67 additions and 1 deletions

View File

@ -18,6 +18,7 @@
// portalSelected: called when portal on map is selected/unselected.
// Provide guid of selected and unselected portal.
// mapDataRefreshStart: called when we start refreshing map data
// mapDataEntityInject: called just as we start to render data. has callback to inject cached entities into the map render
// mapDataRefreshEnd: called when we complete the map data load
// portalAdded: called when a portal has been received and is about to
// be added to its layer group. Note that this does NOT
@ -55,7 +56,7 @@
window._hooks = {}
window.VALID_HOOKS = [
'portalSelected', 'portalDetailsUpdated',
'mapDataRefreshStart', 'mapDataRefreshEnd',
'mapDataRefreshStart', 'mapDataEntityInject', 'mapDataRefreshEnd',
'portalAdded', 'linkAdded', 'fieldAdded',
'publicChatDataAvailable', 'factionChatDataAvailable',
'requestFinished', 'nicknameClicked',