plugin: portal-level-numbers fixed
This commit is contained in:
parent
138a37d777
commit
efd447b227
@ -2,7 +2,7 @@
|
||||
// @id iitc-plugin-portal-level-numbers@rongou
|
||||
// @name IITC plugin: Portal Level Numbers
|
||||
// @category Layer
|
||||
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||
// @version 0.1.2.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@ -38,8 +38,7 @@ window.plugin.portalLevelNumbers.portalAdded = function(data) {
|
||||
window.plugin.portalLevelNumbers.renderLevel = function(guid,latLng) {
|
||||
plugin.portalLevelNumbers.removeLevel(guid);
|
||||
|
||||
var d = window.portals[guid].options.details;
|
||||
var levelNumber = Math.floor(window.getPortalLevel(d));
|
||||
var levelNumber = window.portals[guid].options.level;
|
||||
var level = L.marker(latLng, {
|
||||
icon: L.divIcon({
|
||||
className: 'plugin-portal-level-numbers',
|
||||
|
Loading…
x
Reference in New Issue
Block a user