plugin: portal-names fixed
This commit is contained in:
parent
efd447b227
commit
55f6644f89
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-portal-names@zaso
|
// @id iitc-plugin-portal-names@zaso
|
||||||
// @name IITC plugin: Portal Names
|
// @name IITC plugin: Portal Names
|
||||||
// @category Layer
|
// @category Layer
|
||||||
// @version 0.1.2.@@DATETIMEVERSION@@
|
// @version 0.1.3.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -63,8 +63,8 @@ window.plugin.portalNames.addLabel = function(guid, latLng) {
|
|||||||
var previousLayer = window.plugin.portalNames.labelLayers[guid];
|
var previousLayer = window.plugin.portalNames.labelLayers[guid];
|
||||||
if (!previousLayer) {
|
if (!previousLayer) {
|
||||||
|
|
||||||
var d = window.portals[guid].options.details;
|
var d = window.portals[guid].options.data;
|
||||||
var portalName = d.portalV2.descriptiveText.TITLE;
|
var portalName = d.title;
|
||||||
|
|
||||||
var label = L.marker(latLng, {
|
var label = L.marker(latLng, {
|
||||||
icon: L.divIcon({
|
icon: L.divIcon({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user