Initial commit
This commit is contained in:
122
.obsidian/plugins/obsidian-map-view/data.json
vendored
Normal file
122
.obsidian/plugins/obsidian-map-view/data.json
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"defaultState": {
|
||||
"name": "Default",
|
||||
"mapZoom": 1,
|
||||
"mapCenter": {
|
||||
"lat": 40.44694705960048,
|
||||
"lng": -180.70312500000003
|
||||
},
|
||||
"query": "",
|
||||
"chosenMapSource": 0,
|
||||
"showLinks": false,
|
||||
"linkColor": "red"
|
||||
},
|
||||
"savedStates": [],
|
||||
"markerIconRules": [
|
||||
{
|
||||
"ruleName": "default",
|
||||
"preset": true,
|
||||
"iconDetails": {
|
||||
"prefix": "fas",
|
||||
"icon": "fa-circle",
|
||||
"markerColor": "blue",
|
||||
"innerHTML": "<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fas\" data-icon=\"circle\" class=\"svg-inline--fa fa-circle\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" style=\"color: white;\"><path fill=\"currentColor\" d=\"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z\"></path></svg>"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ruleName": "#trip",
|
||||
"preset": false,
|
||||
"iconDetails": {
|
||||
"prefix": "fas",
|
||||
"icon": "fa-hiking",
|
||||
"markerColor": "green"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ruleName": "#trip-water",
|
||||
"preset": false,
|
||||
"iconDetails": {
|
||||
"prefix": "fas",
|
||||
"markerColor": "blue"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ruleName": "#dogs",
|
||||
"preset": false,
|
||||
"iconDetails": {
|
||||
"prefix": "fas",
|
||||
"icon": "fa-paw"
|
||||
}
|
||||
}
|
||||
],
|
||||
"zoomOnGoFromNote": 15,
|
||||
"autoZoom": true,
|
||||
"markerClickBehavior": "replaceCurrent",
|
||||
"markerCtrlClickBehavior": "dedicatedPane",
|
||||
"markerMiddleClickBehavior": "dedicatedTab",
|
||||
"openMapBehavior": "replaceCurrent",
|
||||
"openMapCtrlClickBehavior": "dedicatedPane",
|
||||
"openMapMiddleClickBehavior": "dedicatedTab",
|
||||
"newNoteNameFormat": "Location added on {{date:YYYY-MM-DD}}T{{date:HH-mm}}",
|
||||
"showNoteNamePopup": true,
|
||||
"showLinkNameInPopup": "always",
|
||||
"showNotePreview": true,
|
||||
"showClusterPreview": true,
|
||||
"debug": false,
|
||||
"openIn": [
|
||||
{
|
||||
"name": "Google Maps",
|
||||
"urlPattern": "https://maps.google.com/?q={x},{y}"
|
||||
}
|
||||
],
|
||||
"urlParsingRules": [
|
||||
{
|
||||
"name": "OpenStreetMap Show Address",
|
||||
"regExp": "https:\\/\\/www.openstreetmap.org\\S*query=([0-9\\.\\-]+%2C[0-9\\.\\-]+)\\S*",
|
||||
"ruleType": "latLng",
|
||||
"preset": true
|
||||
},
|
||||
{
|
||||
"name": "Generic Lat,Lng",
|
||||
"regExp": "([0-9\\.\\-]+), ([0-9\\.\\-]+)",
|
||||
"ruleType": "latLng",
|
||||
"preset": true
|
||||
},
|
||||
{
|
||||
"name": "Geolocation Link",
|
||||
"regExp": "\\[.*\\]\\(geo:([0-9\\.\\-]+),([0-9\\.\\-]+)\\)",
|
||||
"ruleType": "latLng",
|
||||
"preset": true
|
||||
}
|
||||
],
|
||||
"mapControls": {
|
||||
"filtersDisplayed": true,
|
||||
"viewDisplayed": false,
|
||||
"linksDisplayed": true,
|
||||
"presetsDisplayed": false
|
||||
},
|
||||
"maxClusterRadiusPixels": 20,
|
||||
"searchProvider": "osm",
|
||||
"useGooglePlaces": false,
|
||||
"mapSources": [
|
||||
{
|
||||
"name": "CartoDB",
|
||||
"urlLight": "https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png",
|
||||
"preset": true
|
||||
}
|
||||
],
|
||||
"frontMatterKey": "location",
|
||||
"chosenMapMode": "auto",
|
||||
"saveHistory": true,
|
||||
"letZoomBeyondMax": false,
|
||||
"queryForFollowActiveNote": "path:\"$PATH$\"",
|
||||
"supportRealTimeGeolocation": false,
|
||||
"fixFrontMatterOnPaste": true,
|
||||
"geoHelperType": "url",
|
||||
"geoHelperCommand": "chrome",
|
||||
"geoHelperUrl": "https://esm7.github.io/obsidian-geo-helper/",
|
||||
"handleGeolinksInNotes": true,
|
||||
"showGeolinkPreview": false,
|
||||
"zoomOnGeolinkPreview": 10,
|
||||
"routingUrl": "https://www.google.com/maps/dir/?api=1&origin={x0},{y0}&destination={x1},{y1}"
|
||||
}
|
48206
.obsidian/plugins/obsidian-map-view/main.js
vendored
Normal file
48206
.obsidian/plugins/obsidian-map-view/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
.obsidian/plugins/obsidian-map-view/manifest.json
vendored
Normal file
8
.obsidian/plugins/obsidian-map-view/manifest.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"id": "obsidian-map-view",
|
||||
"name": "Map View",
|
||||
"version": "5.0.2",
|
||||
"minAppVersion": "1.5.6",
|
||||
"description": "An interactive map view.",
|
||||
"isDesktopOnly": false
|
||||
}
|
324
.obsidian/plugins/obsidian-map-view/styles.css
vendored
Normal file
324
.obsidian/plugins/obsidian-map-view/styles.css
vendored
Normal file
@@ -0,0 +1,324 @@
|
||||
.map-view-marker-name {
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-text-size);
|
||||
font-family: var(--font-text);
|
||||
font-weight: bold;
|
||||
margin: 0 !important;
|
||||
/* Make sure the marker name doesn't cover up the close button */
|
||||
margin-right: 18px !important;
|
||||
}
|
||||
|
||||
.map-view-marker-sub-name {
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-text-size);
|
||||
font-family: var(--font-text);
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.map-view-main {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.map-view-location {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.map-view-graph-controls {
|
||||
left: 8px;
|
||||
top: 8px;
|
||||
padding: 8px 20px 8px 8px;
|
||||
background-color: var(--background-primary-alt);
|
||||
max-width: 240px;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: 6px;
|
||||
max-height: calc(100% - 16px);
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
padding: 8px 25px 5px 12px;
|
||||
}
|
||||
|
||||
.graph-control-div {
|
||||
display: block;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.graph-control-content {
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.graph-control-error {
|
||||
border-color: red !important;
|
||||
}
|
||||
|
||||
.controls-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mv-control-button {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* An icon button on the map, e.g. lock */
|
||||
.mv-icon-button {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
a.mv-icon-button.on {
|
||||
background-color: var(--background-modifier-border-focus) !important;
|
||||
}
|
||||
|
||||
.controls-toggle:checked
|
||||
+ .lbl-triangle
|
||||
+ .lbl-toggle
|
||||
+ .graph-control-content {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.lbl-triangle {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
transition: 0.25s;
|
||||
}
|
||||
|
||||
.controls-toggle:checked + .lbl-triangle {
|
||||
transform: rotate(90deg);
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
.settings-dense-button {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.setting-item-control .mv-emoji-icon {
|
||||
margin: 12px 0;
|
||||
}
|
||||
|
||||
.leaflet-container .dark-mode {
|
||||
filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg)
|
||||
saturate(0.3) brightness(0.7);
|
||||
}
|
||||
|
||||
.leaflet-container {
|
||||
background-color: var(--titlebar-background-focused) !important;
|
||||
}
|
||||
|
||||
.newPresetDialogGrid {
|
||||
display: grid;
|
||||
grid-row-gap: 10px;
|
||||
}
|
||||
|
||||
.newPresetDialogLine {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.clusterPreviewIcon {
|
||||
margin-left: 0 !important;
|
||||
margin-top: 0 !important;
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.clusterPreviewContainer {
|
||||
display: inline-flex;
|
||||
border-radius: 6px;
|
||||
line-height: 1.5;
|
||||
background-color: var(--background-primary);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.clusterPreviewContainer .leaflet-marker-icon {
|
||||
background-color: var(--background-primary);
|
||||
}
|
||||
|
||||
/* Make emoji icons behave in cluster previews */
|
||||
.clusterPreviewContainer p {
|
||||
margin: 10px 0 !important;
|
||||
}
|
||||
|
||||
.graph-control-follow-label {
|
||||
vertical-align: top;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.marker-popup {
|
||||
border-radius: 6px;
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-text-size);
|
||||
font-family: var(--font-text);
|
||||
line-height: 1.5;
|
||||
background-color: var(--background-primary);
|
||||
box-shadow: 0 2px 8px var(--background-modifier-box-shadow);
|
||||
}
|
||||
|
||||
.mv-marker-label {
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
/* Disable the default Leaflet shadow because we use the Obsidian theme above */
|
||||
.marker-popup .leaflet-popup-content-wrapper {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
color: none;
|
||||
}
|
||||
|
||||
.mv-marker-popup-container {
|
||||
max-height: 20em;
|
||||
width: 30em;
|
||||
overflow: hidden;
|
||||
/* Initially this isn't displayed */
|
||||
display: none;
|
||||
z-index: 2;
|
||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.mv-marker-popup-container .markdown-embed {
|
||||
border-left: 0;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
/* Simple placement mode is used on mobile, where the screen is too small and Popper is unavailable anyway */
|
||||
.mv-marker-popup-container.simple-placement {
|
||||
bottom: 32px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mv-marker-popup-close {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
cursor: pointer;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
.url-rule-dropdown {
|
||||
max-width: 7em;
|
||||
}
|
||||
|
||||
.parsing-rule {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.parsing-rule-line-2 {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.map-search-suggestion {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.suggestion-item .search-icon-div .leaflet-marker-icon .mv-emoji-icon {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.search-text-div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.leaflet-marker-icon {
|
||||
transition: filter 0.1s;
|
||||
}
|
||||
|
||||
.map-view-highlight {
|
||||
filter: drop-shadow(0 0 10px blue);
|
||||
}
|
||||
|
||||
.mv-fade-active .leaflet-marker-icon:not(.mv-fade-marker-shown) {
|
||||
filter: grayscale(100%);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.mv-fade-active path.leaflet-interactive:not(.mv-fade-edge-shown) {
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
div.map-view-highlight.marker-cluster {
|
||||
box-shadow: 0 0 5px blue;
|
||||
}
|
||||
|
||||
.map-view-icon {
|
||||
margin: 10px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
|
||||
.mv-emoji-icon {
|
||||
text-shadow: 0 0 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff,
|
||||
-1px 1px 1px #fff, 0 0 2px #fff;
|
||||
top: -2px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mv-map-control {
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.block-language-mapview {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.markdown-reading-view .graph-control-div {
|
||||
display: none;
|
||||
}
|
||||
.markdown-reading-view .map-view-graph-controls {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.map-view-graph-controls {
|
||||
display: none;
|
||||
}
|
||||
.leaflet-control-zoom {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.map-preview-popup {
|
||||
position: absolute;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.2s ease-in-out, visibility 0s 0.2s;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.map-preview-popup.show {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.map-preview-popup-map {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.mv-simple-circle-marker {
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.mv-simple-circle-marker i {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.mv-simple-circle-marker .mv-emoji-icon {
|
||||
top: 0;
|
||||
}
|
Reference in New Issue
Block a user