From 7e9c1e78ec45016456aad0c708792d7792023d1a Mon Sep 17 00:00:00 2001 From: LeJeu <64744459+le-jeu@users.noreply.github.com> Date: Sun, 14 Feb 2021 19:37:48 +0100 Subject: [PATCH] global class so plugins can extend/overwrite it --- core/code/portal_marker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/code/portal_marker.js b/core/code/portal_marker.js index 4f79c0539..9505c903a 100644 --- a/core/code/portal_marker.js +++ b/core/code/portal_marker.js @@ -38,7 +38,7 @@ var CompatPortalMarker = L.Class.extend({ } }) -var PortalMarker = L.CircleMarker.extend({ +L.PortalMarker = L.CircleMarker.extend({ options: {}, initialize: function(latlng, data) { @@ -203,7 +203,7 @@ window.portalMarkerScale = function() { // create a new marker. 'data' contain the IITC-specific entity data to be stored in the object options window.createMarker = function(latlng, data) { - return new PortalMarker(latlng, data); + return new L.PortalMarker(latlng, data); }