Skip to content

Commit

Permalink
Update maplibre demo title (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Nov 3, 2024
1 parent b090468 commit dd03739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13666,7 +13666,8 @@ def execute_maplibre_notebook_dir(
out_lines = []
for line in lines:
if line.strip() == '"m"':
out_lines.append(line.replace("m", "m.to_html()"))
title = os.path.splitext(basename)[0].replace("_", " ")
out_lines.append(line.replace("m", f"m.to_html(title='{title}')"))
else:
out_lines.append(line)

Expand Down

0 comments on commit dd03739

Please sign in to comment.