Skip to content

Commit 539bb20

Browse files
committed
Added support for loading plugins via external packages
1 parent d6613ee commit 539bb20

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

inst/htmlwidgets/leaflet.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,8 @@ function addMarkers(map, df, group, clusterOptions, clusterId, markerFunc) {
11471147
}).call(map);
11481148
}
11491149

1150+
methods.addGenericMarkers = addMarkers;
1151+
11501152
methods.addMarkers = function (lat, lng, icon, layerId, group, options, popup, popupOptions, clusterOptions, clusterId, label, labelOptions) {
11511153
var icondf = void 0;
11521154
var getIcon = void 0;
@@ -1950,6 +1952,10 @@ methods.removeMeasure = function () {
19501952
delete this.measureControl;
19511953
};
19521954

1955+
methods.newDataFrame = function () {
1956+
return new _dataframe2.default();
1957+
};
1958+
19531959

19541960
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
19551961
},{"./cluster-layer-store":1,"./crs_utils":3,"./dataframe":4,"./global/htmlwidgets":6,"./global/jquery":7,"./global/leaflet":8,"./global/shiny":10,"./mipmapper":14,"./util":15}],14:[function(require,module,exports){

javascript/src/methods.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ function addMarkers(map, df, group, clusterOptions, clusterId, markerFunc) {
182182
}).call(map);
183183
}
184184

185+
methods.addGenericMarkers = addMarkers;
186+
185187
methods.addMarkers = function(lat, lng, icon, layerId, group, options, popup, popupOptions,
186188
clusterOptions, clusterId, label, labelOptions) {
187189
let icondf;
@@ -1064,3 +1066,7 @@ methods.removeMeasure = function() {
10641066
this.measureControl.removeFrom( this );
10651067
delete this.measureControl;
10661068
};
1069+
1070+
methods.newDataFrame = function() {
1071+
return new DataFrame();
1072+
};

0 commit comments

Comments
 (0)