From bf795e752022fca4bd3e965d5464601637a6dfab Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sun, 28 Jun 2015 20:29:13 +0100 Subject: [PATCH] fix portal-names plugin to work with placeholder portals --- plugins/portal-names.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/portal-names.user.js b/plugins/portal-names.user.js index 9fb04b44..5a892eb5 100644 --- a/plugins/portal-names.user.js +++ b/plugins/portal-names.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-portal-names@zaso // @name IITC plugin: Portal Names // @category Layer -// @version 0.1.5.@@DATETIMEVERSION@@ +// @version 0.1.6.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -93,7 +93,7 @@ window.plugin.portalNames.updatePortalLabels = function() { for (var guid in window.portals) { var p = window.portals[guid]; - if (p._map) { // only consider portals added to the map + if (p._map && p.options.data.title) { // only consider portals added to the map and with a title var point = map.project(p.getLatLng()); portalPoints[guid] = point; }