Skip to content

Commit

Permalink
global class so plugins can extend/overwrite it
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Feb 14, 2021
1 parent cac5f4d commit 7e9c1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/code/portal_marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var CompatPortalMarker = L.Class.extend({
}
})

var PortalMarker = L.CircleMarker.extend({
L.PortalMarker = L.CircleMarker.extend({
options: {},

initialize: function(latlng, data) {
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit 7e9c1e7

Please sign in to comment.