Skip to content

Commit

Permalink
4.3.4
Browse files Browse the repository at this point in the history
- fixed collision with map view plugin
  • Loading branch information
valentine195 committed Oct 27, 2021
1 parent d9fb97d commit 70a1d9a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "obsidian-leaflet-plugin",
"name": "Obsidian Leaflet",
"description": "Interactive maps inside your notes",
"version": "4.3.3",
"version": "4.3.4",
"minAppVersion": "0.12.12",
"author": "Jeremy Valentine",
"repo": "valentine195/obsidian-leaflet-plugin",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-leaflet-plugin",
"version": "4.3.3",
"version": "4.3.4",
"description": "Leaflet integration for Obsidian.md",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "leaflet";
/* import "leaflet"; */
import "../node_modules/leaflet/dist/leaflet.css";
import "./assets/main.css";
import type InitiativeTracker from "../../obsidian-initiative-tracker/src/main";
Expand Down Expand Up @@ -54,6 +54,7 @@ import { LeafletMapView } from "./map/view";
import { SRDMonster } from "../../obsidian-initiative-tracker/@types";
import { Length } from "convert/dist/types/units";


//add commands to app interface
declare module "obsidian" {
interface App {
Expand Down
13 changes: 7 additions & 6 deletions src/utils/leaflet-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ declare global {
export const LeafletSymbol = "OBSIDIAN_LEAFLET_PLUGIN";

const WindowL = window.L;
if (!window.L) {
require("leaflet");
}

require("leaflet");
window.L.Circle.mergeOptions({
window[LeafletSymbol] = window.L;
window[LeafletSymbol].Circle.mergeOptions({
weight: MAP_OVERLAY_STROKE_WIDTH,
opacity: MAP_OVERLAY_STROKE_OPACITY
});

window[LeafletSymbol] = window.L;

window.L = WindowL;

require("leaflet-fullscreen");
require("leaflet-hotline");

window.L = WindowL;
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
"3.24.3": "0.12.10",
"4.0.0": "0.12.12",
"4.2.2": "0.12.12",
"4.3.3": "0.12.12"
"4.3.4": "0.12.12"
}

0 comments on commit 70a1d9a

Please sign in to comment.