@abi-software/flatmap-viewer 2.7.2 → 2.7.3-a.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flatmapviewer.es.js +80577 -0
- package/dist/flatmapviewer.umd.js +1687 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/style.css +1 -0
- package/package.json +10 -8
- package/lib/index.ts +0 -10
- package/src/contextmenu.js +0 -97
- package/src/controls/annotation.js +0 -302
- package/src/controls/controls.js +0 -645
- package/src/controls/flightpaths.js +0 -95
- package/src/controls/info.js +0 -291
- package/src/controls/minimap.js +0 -442
- package/src/controls/paths.js +0 -143
- package/src/controls/search.js +0 -113
- package/src/controls/systems.js +0 -75
- package/src/controls/taxons.js +0 -73
- package/src/flatmap-viewer.js +0 -1789
- package/src/images.js +0 -66
- package/src/interactions.js +0 -1569
- package/src/layers/cluster.js +0 -177
- package/src/layers/filter.js +0 -310
- package/src/layers/flightpaths.js +0 -383
- package/src/layers/index.js +0 -478
- package/src/layers/styling.js +0 -1077
- package/src/main.js +0 -272
- package/src/mapserver.js +0 -64
- package/src/mathjax.js +0 -100
- package/src/pathways.js +0 -427
- package/src/search.js +0 -137
- package/src/systems.js +0 -146
- package/src/utils.js +0 -152
- package/static/css/flatmap-viewer.css +0 -238
- package/static/icons/favicon.ico +0 -0
- package/static/images/active.png +0 -0
- package/static/images/inactive.png +0 -0
- package/static/images/reset-map-active.png +0 -0
- package/static/images/reset-map-button.png +0 -0
- package/static/images/rounded-background.png +0 -0
- package/static/images/zoom-in-active.png +0 -0
- package/static/images/zoom-in-button.png +0 -0
- package/static/images/zoom-out-active.png +0 -0
- package/static/images/zoom-out-button.png +0 -0
- package/thirdParty/maplibre-gl-svg/CHANGELOG.md +0 -13
- package/thirdParty/maplibre-gl-svg/LICENSE +0 -21
- package/thirdParty/maplibre-gl-svg/LICENSE.md +0 -21
- package/thirdParty/maplibre-gl-svg/README.md +0 -24
- package/thirdParty/maplibre-gl-svg/assets/Add custom SVG template to template manager.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/All built-in SVG templates as HTML markers.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/All built-in SVG templates as symbols.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/Fill polygon with built-in SVG template.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/HTML Marker with Custom SVG Template.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/HTML Marker with built-in SVG template.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/Line layer with built-in SVG template.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/Load SVG from URL.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/SVG template options.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/Smiley_face_changed.svg +0 -37
- package/thirdParty/maplibre-gl-svg/assets/Symbol layer with built-in SVG template.jpg +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/arrow-up-thin.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/arrow-up.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/car.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/checker-rotated.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/checker.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/circles-spaced.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/circles.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-lines-down.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-lines-up.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-stripes-down.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-stripes-up.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/dots.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/flag-triangle.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/flag.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/grid-lines.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-rounded-thick.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-rounded.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-thick.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-arrow.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-ball-pin.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-circle.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-flat.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-cluster.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-rounded-cluster.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-rounded.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-thick.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/marker.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/pin-round.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/pin.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/rotated-grid-lines.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/rotated-grid-stripes.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/rounded-square-thick.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/rounded-square.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-arrow-left.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-arrow-up.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-thick.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/x-fill.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/zig-zag-vertical.png +0 -0
- package/thirdParty/maplibre-gl-svg/assets/image-templates/zig-zag.png +0 -0
- package/thirdParty/maplibre-gl-svg/build/build.js +0 -210
- package/thirdParty/maplibre-gl-svg/dist/maplibre-gl-svg.js +0 -339
- package/thirdParty/maplibre-gl-svg/dist/maplibre-gl-svg.min.js +0 -4
- package/thirdParty/maplibre-gl-svg/docs/docs.md +0 -375
- package/thirdParty/maplibre-gl-svg/examples/Add custom SVG template to template manager.html +0 -101
- package/thirdParty/maplibre-gl-svg/examples/All built-in SVG templates as HTML markers.html +0 -82
- package/thirdParty/maplibre-gl-svg/examples/All built-in SVG templates as symbols.html +0 -124
- package/thirdParty/maplibre-gl-svg/examples/Fill polygon with built-in SVG template.html +0 -94
- package/thirdParty/maplibre-gl-svg/examples/HTML Marker with Custom SVG Template.html +0 -86
- package/thirdParty/maplibre-gl-svg/examples/HTML Marker with built-in SVG template.html +0 -83
- package/thirdParty/maplibre-gl-svg/examples/Line layer with built-in SVG template.html +0 -129
- package/thirdParty/maplibre-gl-svg/examples/Load SVG from URL.html +0 -96
- package/thirdParty/maplibre-gl-svg/examples/SVG template options.html +0 -264
- package/thirdParty/maplibre-gl-svg/examples/Symbol layer with built-in SVG template.html +0 -93
- package/thirdParty/maplibre-gl-svg/index.html +0 -151
- package/thirdParty/maplibre-gl-svg/package-lock.json +0 -5882
- package/thirdParty/maplibre-gl-svg/package.json +0 -49
- package/thirdParty/maplibre-gl-svg/src/SvgManager.ts +0 -186
- package/thirdParty/maplibre-gl-svg/src/SvgTemplateManager.ts +0 -144
- package/thirdParty/maplibre-gl-svg/src/index.ts +0 -4
- package/thirdParty/maplibre-gl-svg/tsconfig.json +0 -31
- package/thirdParty/maplibre-gl-svg/typings/index.d.ts +0 -111
package/src/utils.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
|
|
3
|
-
Flatmap viewer and annotation tool
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2019 David Brooks
|
|
6
|
-
|
|
7
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
you may not use this file except in compliance with the License.
|
|
9
|
-
You may obtain a copy of the License at
|
|
10
|
-
|
|
11
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
|
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
See the License for the specific language governing permissions and
|
|
17
|
-
limitations under the License.
|
|
18
|
-
|
|
19
|
-
******************************************************************************/
|
|
20
|
-
|
|
21
|
-
'use strict';
|
|
22
|
-
|
|
23
|
-
//==============================================================================
|
|
24
|
-
|
|
25
|
-
// A PMID is a "1- to 8-digit accession number with no leading zeros"
|
|
26
|
-
const ZERO_PAD_PREFIXES = {
|
|
27
|
-
'ILX': 7,
|
|
28
|
-
'UBERON': 7
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//==============================================================================
|
|
32
|
-
|
|
33
|
-
export class List extends Array {
|
|
34
|
-
constructor(iterable=null) {
|
|
35
|
-
super();
|
|
36
|
-
if (iterable !== null)
|
|
37
|
-
this.extend(iterable);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
append(element) {
|
|
41
|
-
super.push(element);
|
|
42
|
-
return this;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
contains(element) {
|
|
46
|
-
return (super.includes(element));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
extend(other) {
|
|
50
|
-
if (this === other) {
|
|
51
|
-
throw new Error('Cannot extend a list with itself...');
|
|
52
|
-
} else if (other) {
|
|
53
|
-
super.push(...other);
|
|
54
|
-
}
|
|
55
|
-
return this;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
slice(start, end)
|
|
59
|
-
//===============
|
|
60
|
-
{
|
|
61
|
-
return new List(Array(...this).slice(start, end));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
//==============================================================================
|
|
66
|
-
|
|
67
|
-
// From https://spin.atomicobject.com/2018/09/10/javascript-concurrency/
|
|
68
|
-
|
|
69
|
-
export class Mutex
|
|
70
|
-
{
|
|
71
|
-
constructor()
|
|
72
|
-
{
|
|
73
|
-
this._mutex = Promise.resolve();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
lock()
|
|
77
|
-
//====
|
|
78
|
-
{
|
|
79
|
-
let begin = unlock => {};
|
|
80
|
-
|
|
81
|
-
this._mutex = this._mutex.then(() => {
|
|
82
|
-
return new Promise(begin);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
return new Promise(res => {
|
|
86
|
-
begin = res;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
async dispatch(fn)
|
|
91
|
-
//================
|
|
92
|
-
{
|
|
93
|
-
const unlock = await this.lock();
|
|
94
|
-
|
|
95
|
-
try {
|
|
96
|
-
return await Promise.resolve(fn());
|
|
97
|
-
} finally {
|
|
98
|
-
unlock();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
//==============================================================================
|
|
104
|
-
|
|
105
|
-
export function normaliseId(id)
|
|
106
|
-
{
|
|
107
|
-
if (!id.includes(':')) {
|
|
108
|
-
return id;
|
|
109
|
-
}
|
|
110
|
-
const parts = id.split(':')
|
|
111
|
-
const lastPart = parts[parts.length - 1]
|
|
112
|
-
if (parts[0].toUpperCase() in ZERO_PAD_PREFIXES && '0123456789'.includes(lastPart[0])) {
|
|
113
|
-
parts[parts.length - 1] = lastPart.padStart(ZERO_PAD_PREFIXES[parts[0].toUpperCase()], '0');
|
|
114
|
-
return parts.join(':');
|
|
115
|
-
}
|
|
116
|
-
return id;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
//==============================================================================
|
|
120
|
-
|
|
121
|
-
export function setDefaults(options, defaultOptions)
|
|
122
|
-
{
|
|
123
|
-
if (options === undefined || options === null) {
|
|
124
|
-
return defaultOptions;
|
|
125
|
-
}
|
|
126
|
-
for (const [key, value] of Object.entries(defaultOptions)) {
|
|
127
|
-
if (!(key in options)) {
|
|
128
|
-
options[key] = value;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return options;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
//==============================================================================
|
|
135
|
-
|
|
136
|
-
export function reverseMap(mapping)
|
|
137
|
-
//=================================
|
|
138
|
-
{
|
|
139
|
-
const reverse = {};
|
|
140
|
-
for (const [key, values] of Object.entries(mapping)) {
|
|
141
|
-
for (const value of values) {
|
|
142
|
-
if (value in reverse) {
|
|
143
|
-
reverse[value].add(key);
|
|
144
|
-
} else {
|
|
145
|
-
reverse[value] = new Set([key]);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return reverse;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
//==============================================================================
|
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
/* Overide MapLibre's relative positioning... */
|
|
2
|
-
|
|
3
|
-
.maplibregl-map {
|
|
4
|
-
position: absolute;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.maplibregl-map.maplibregl-ctrl-minimap {
|
|
8
|
-
position: relative;
|
|
9
|
-
background-color: white;
|
|
10
|
-
}
|
|
11
|
-
.maplibregl-ctrl-minimap {
|
|
12
|
-
border: 1px solid #444;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Context menu */
|
|
16
|
-
|
|
17
|
-
.flatmap-contextmenu-popup .maplibregl-popup-content {
|
|
18
|
-
padding: 0;
|
|
19
|
-
}
|
|
20
|
-
.flatmap-contextmenu .maplibregl-popup-tip {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
.flatmap-contextmenu {
|
|
24
|
-
padding: 0;
|
|
25
|
-
background: #EEE;
|
|
26
|
-
box-shadow: 0 4px 5px 3px rgba(0, 0, 0, 0.2);
|
|
27
|
-
}
|
|
28
|
-
ul.flatmap-contextmenu {
|
|
29
|
-
list-style: none;
|
|
30
|
-
padding: 6px;
|
|
31
|
-
min-width: 120px;
|
|
32
|
-
margin: 0;
|
|
33
|
-
font-size: 1.2em;
|
|
34
|
-
border: 1px solid #888;
|
|
35
|
-
text-align: left;
|
|
36
|
-
}
|
|
37
|
-
li.flatmap-contextmenu-item:hover {
|
|
38
|
-
background: #58E;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Custom control buttons */
|
|
42
|
-
|
|
43
|
-
.control-button {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
vertical-align: middle;
|
|
46
|
-
margin-left: 5px;
|
|
47
|
-
}
|
|
48
|
-
.control-button svg {
|
|
49
|
-
width: 20px;
|
|
50
|
-
height: 20px;
|
|
51
|
-
margin-top: 2px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.text-button {
|
|
55
|
-
width: 64px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* Search box */
|
|
59
|
-
|
|
60
|
-
#search-control-input {
|
|
61
|
-
line-height: 0;
|
|
62
|
-
font-size: 1.5em;
|
|
63
|
-
width: 240px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Feature information */
|
|
67
|
-
|
|
68
|
-
.info-control .control-button-active,
|
|
69
|
-
.info-control .control-button-active:not(:disabled):hover {
|
|
70
|
-
background-color: #80c0ff;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
#info-control-info {
|
|
74
|
-
text-align: left;
|
|
75
|
-
display: inline-grid;
|
|
76
|
-
grid-template-columns: 1fr 4fr;
|
|
77
|
-
column-gap: 10px;
|
|
78
|
-
row-gap: 0.2em;
|
|
79
|
-
min-width: 200px;
|
|
80
|
-
margin: 5px;
|
|
81
|
-
color: #8300bf;
|
|
82
|
-
font-size: 10pt;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.info-name {
|
|
86
|
-
font-weight: bold;
|
|
87
|
-
text-transform: capitalize;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.info-control-features {
|
|
91
|
-
width: 600px;
|
|
92
|
-
margin: 0;
|
|
93
|
-
overflow: auto;
|
|
94
|
-
line-height: 1.1em;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.info-display {
|
|
98
|
-
background-color: white;
|
|
99
|
-
border: 1px solid red;
|
|
100
|
-
overflow: scroll;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.info-control-entry {
|
|
104
|
-
border-bottom: 1px solid gray;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* Navigation control buttons */
|
|
108
|
-
|
|
109
|
-
.maplibregl-ctrl button.navigation-zoom-in {
|
|
110
|
-
background-image: url("../images/zoom-in-button.png");
|
|
111
|
-
}
|
|
112
|
-
.maplibregl-ctrl button.navigation-zoom-in:active {
|
|
113
|
-
background-image: url("../images/zoom-in-active.png");
|
|
114
|
-
}
|
|
115
|
-
.maplibregl-ctrl button.navigation-zoom-out {
|
|
116
|
-
background-image: url("../images/zoom-out-button.png");
|
|
117
|
-
}
|
|
118
|
-
.maplibregl-ctrl button.navigation-zoom-out:active {
|
|
119
|
-
background-image: url("../images/zoom-out-active.png");
|
|
120
|
-
}
|
|
121
|
-
.maplibregl-ctrl button.navigation-reset {
|
|
122
|
-
background-image: url("../images/reset-map-button.png");
|
|
123
|
-
}
|
|
124
|
-
.maplibregl-ctrl button.navigation-reset:active {
|
|
125
|
-
background-image: url("../images/reset-map-active.png");
|
|
126
|
-
}
|
|
127
|
-
.navigation-group button {
|
|
128
|
-
display: block;
|
|
129
|
-
width:36px;
|
|
130
|
-
height: 36px;
|
|
131
|
-
border-radius: 50%;
|
|
132
|
-
background-color: transparent;
|
|
133
|
-
background-repeat: no-repeat;
|
|
134
|
-
background-position: -1px -1px;
|
|
135
|
-
border: none;
|
|
136
|
-
box-shadow: none;
|
|
137
|
-
}
|
|
138
|
-
.navigation-group button:focus {
|
|
139
|
-
outline: 0;
|
|
140
|
-
}
|
|
141
|
-
/* establish desired focus ring appearance for appropriate input modalities */
|
|
142
|
-
.navigation-group button:focus-visible {
|
|
143
|
-
outline: 2px solid blue;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* Tooltips */
|
|
147
|
-
|
|
148
|
-
.flatmap-tooltip-popup .maplibregl-popup-content,
|
|
149
|
-
.flatmap-marker-popup .maplibregl-popup-content {
|
|
150
|
-
background: #eee;
|
|
151
|
-
padding-top: 5px;
|
|
152
|
-
padding-bottom: 5px;
|
|
153
|
-
}
|
|
154
|
-
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
|
|
155
|
-
border-bottom-color: #eee;
|
|
156
|
-
}
|
|
157
|
-
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
|
|
158
|
-
border-top-color: #eee;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Labels */
|
|
162
|
-
|
|
163
|
-
.flatmap-feature-label {
|
|
164
|
-
color: #8300bf;
|
|
165
|
-
font-size: 12pt;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* Additional control buttons */
|
|
169
|
-
|
|
170
|
-
#flatmap-nerve-key,
|
|
171
|
-
#flatmap-path-control {
|
|
172
|
-
margin-top: 20px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Nerve key */
|
|
176
|
-
|
|
177
|
-
#flatmap-nerve-key {
|
|
178
|
-
text-align: right;
|
|
179
|
-
}
|
|
180
|
-
.flatmap-nerve-grid {
|
|
181
|
-
margin-top: 10px;
|
|
182
|
-
display: grid;
|
|
183
|
-
grid-template-columns: 3fr 0.8fr 0.2fr;
|
|
184
|
-
column-gap: 10px;
|
|
185
|
-
row-gap: 0.2em;
|
|
186
|
-
width: 300px;
|
|
187
|
-
font-size: 10pt;
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
text-align: left;
|
|
190
|
-
background: white;
|
|
191
|
-
border: 1px solid gray;
|
|
192
|
-
padding: 4px;
|
|
193
|
-
opacity: 0.8;
|
|
194
|
-
}
|
|
195
|
-
.flatmap-nerve-grid input {
|
|
196
|
-
height: 1.1em;
|
|
197
|
-
}
|
|
198
|
-
.flatmap-nerve-grid .nerve-line {
|
|
199
|
-
margin: 8px 0;
|
|
200
|
-
height: 3px;
|
|
201
|
-
}
|
|
202
|
-
label[for=path-all-paths] {
|
|
203
|
-
font-weight: bold;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* Layer control */
|
|
207
|
-
|
|
208
|
-
.flatmap-control {
|
|
209
|
-
text-align: right;
|
|
210
|
-
}
|
|
211
|
-
.flatmap-control-grid {
|
|
212
|
-
margin-top: 10px;
|
|
213
|
-
display: grid;
|
|
214
|
-
grid-template-columns: 3.8fr 0.2fr;
|
|
215
|
-
column-gap: 10px;
|
|
216
|
-
row-gap: 0.2em;
|
|
217
|
-
width: 300px;
|
|
218
|
-
font-size: 10pt;
|
|
219
|
-
cursor: pointer;
|
|
220
|
-
text-align: left;
|
|
221
|
-
background: white;
|
|
222
|
-
border: 1px solid gray;
|
|
223
|
-
padding: 4px;
|
|
224
|
-
opacity: 0.8;
|
|
225
|
-
}
|
|
226
|
-
.flatmap-control-grid input {
|
|
227
|
-
height: 1.1em;
|
|
228
|
-
}
|
|
229
|
-
label[for=layer-all-layers] {
|
|
230
|
-
font-weight: bold;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/* Control buttons for standalone annotation */
|
|
234
|
-
.mapbox-gl-draw_ctrl-draw-btn.active {
|
|
235
|
-
background-color: #FBB !important;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/* End of file */
|
package/static/icons/favicon.ico
DELETED
|
Binary file
|
package/static/images/active.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
## Maplibre GL SVG Plugin Changelog
|
|
2
|
-
|
|
3
|
-
<a name="0.0.1"></a>
|
|
4
|
-
# 0.0.1
|
|
5
|
-
|
|
6
|
-
Initial release.
|
|
7
|
-
|
|
8
|
-
**Features**
|
|
9
|
-
|
|
10
|
-
- Load an SVG into the maps image sprite and use as an icon in a symbol layer, or as an fill pattern.
|
|
11
|
-
- SVG templates manager to easily create reusable customizable icon templates using SVGs. Includes
|
|
12
|
-
- 27 built-in symbol/marker icon templates
|
|
13
|
-
- 15 built-in fill pattern templates.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Ricky Brundritt
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Ricky Brundritt
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# MapLibre GL SVG Plugin
|
|
2
|
-
|
|
3
|
-
> Status: New plugin, still being validated.
|
|
4
|
-
|
|
5
|
-
A [maplibre-gl-js](https://maplibre.org/maplibre-gl-js/docs/) plugin that adds support for loading SVGs images into the maps image sprite.
|
|
6
|
-
|
|
7
|
-
- [Go to the examples page](https://rbrundritt.github.io/maplibre-gl-svg/index.html)
|
|
8
|
-
- [Read the docs](https://github.com/rbrundritt/maplibre-gl-svg/blob/main/docs/docs.md)
|
|
9
|
-
|
|
10
|
-
**Features:**
|
|
11
|
-
|
|
12
|
-
- Load an SVG into the maps image sprite and use as an icon in a symbol layer, or as an fill pattern.
|
|
13
|
-
- Framework for templatable SVG icons. Great way to create reusable icons that you can programmatically change the styles of.
|
|
14
|
-
- HTML marker support
|
|
15
|
-
|
|
16
|
-
**Known Limitations**
|
|
17
|
-
|
|
18
|
-
- When loaded into the maps image sprite SVG's are converted into a data URI, and loaded as a static image into the maps image sprite. This means animations and CSS classes are not supported. All CSS styles should be embedded within the SVG. SVG's used with HTML markers will support CSS classes and animations as usual.
|
|
19
|
-
|
|
20
|
-
## License
|
|
21
|
-
|
|
22
|
-
MIT
|
|
23
|
-
|
|
24
|
-
See [License](https://github.com/rbrundritt/maplibre-gl-svg/blob/main/LICENSE.md) for full license text.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
<svg
|
|
4
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
7
|
-
version="1.0"
|
|
8
|
-
x="0"
|
|
9
|
-
y="0"
|
|
10
|
-
width="194"
|
|
11
|
-
height="200"
|
|
12
|
-
id="Face">
|
|
13
|
-
<path
|
|
14
|
-
d="M 186.11394,98.304237 C 186.62399,134.66870 162.61525,169.70928 128.55578,182.43531 C 95.991320,195.60352 56.276124,187.11517 31.824005,161.93377 C 6.1490073,136.74335 -1.7726986,95.589284 12.895063,62.717752 C 26.131798,30.871489 58.959432,8.6063558 93.435503,8.0498005 C 130.40005,6.5693681 166.62078,30.464084 179.78044,65.055801 C 183.95955,75.607305 186.15088,86.951651 186.11394,98.304237 z "
|
|
15
|
-
style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-opacity:1"
|
|
16
|
-
id="path1352" />
|
|
17
|
-
<path
|
|
18
|
-
d="M 77.006599,70.918053 C 77.527726,79.716943 64.712340,84.270466 59.707418,76.889791 C 54.124523,70.591110 60.327827,59.897153 68.519803,61.268419 C 73.235680,61.807597 77.099882,66.152789 77.006599,70.918053 z "
|
|
19
|
-
style="opacity:1;fill:#cece00;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-opacity:1"
|
|
20
|
-
id="eye" />
|
|
21
|
-
<use
|
|
22
|
-
transform="translate(57.58983,0.496064)"
|
|
23
|
-
id="eye2"
|
|
24
|
-
x="0"
|
|
25
|
-
y="0"
|
|
26
|
-
width="744.09448"
|
|
27
|
-
height="1052.3622"
|
|
28
|
-
xlink:href="#eye" />
|
|
29
|
-
<path
|
|
30
|
-
d="M 77.814522,115.89286 C 83.829118,103.68413 89.843712,91.475395 95.858307,79.266663 C 101.87290,91.475397 107.88750,103.68413 113.90210,115.89286 C 101.87291,115.89286 89.843714,115.89286 77.814522,115.89286 z "
|
|
31
|
-
style="fill:#0000ff;fill-opacity:1;stroke:#000000;stroke-width:1;stroke-opacity:1"
|
|
32
|
-
id="nose" />
|
|
33
|
-
<path
|
|
34
|
-
d="M 145.14207,136.36044 C 124.78121,151.38904 102.90920,149.14419 79.824122,131.65685 C 70.594385,128.53160 54.906902,141.79498 46.843849,136.36044"
|
|
35
|
-
style="fill:none;stroke:#000000;stroke-width:1.3228360;stroke-opacity:1"
|
|
36
|
-
id="mouth" />
|
|
37
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|