Skip to content

Commit

Permalink
Add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Jan 25, 2024
1 parent 262c970 commit 646649d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maplibre/srcjs/ipywidget.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions srcjs/mapmethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function applyMapMethod(map, call) {
// Custom map methods
function getCustomMapMethods(maplibregl, map) {
return {
addTooltip: function (layerId, property, template = null) {
addTooltip: function (layerId, property = null, template = null) {
const popupOptions = {
closeButton: false,
closeOnClick: false,
Expand All @@ -34,7 +34,7 @@ function getCustomMapMethods(maplibregl, map) {
map.addControl(new maplibregl[type](options), position);
},

addPopup: function (layerId, property, template = null) {
addPopup: function (layerId, property = null, template = null) {
const popupOptions = {
closeButton: false,
};
Expand Down

0 comments on commit 646649d

Please sign in to comment.