Remove remaining leaflet control references

This commit is contained in:
James Lyne 2022-06-27 13:56:45 +01:00
parent 14674b774e
commit 9fe89c2d71
5 changed files with 8 additions and 32 deletions

12
package-lock.json generated
View File

@ -11,7 +11,7 @@
"dependencies": {
"@kyvg/vue3-notification": "2.3.0",
"@soerenmartius/vue3-clipboard": "^0.1",
"leaflet": "git+https://github.com/JLyne/Leaflet.git#843eb3124492dc48245cd187c6dc94c2f33b65c1",
"leaflet": "git+https://github.com/JLyne/Leaflet.git#0bf4e3f70c2559771592c077401027a6c4913376",
"lodash.debounce": "^4.0.8",
"modern-normalize": "^1.1.0",
"vue": "^3.2.37",
@ -7606,8 +7606,8 @@
},
"node_modules/leaflet": {
"version": "1.8.0-LiveAtlas",
"resolved": "git+ssh://git@github.com/JLyne/Leaflet.git#843eb3124492dc48245cd187c6dc94c2f33b65c1",
"integrity": "sha512-QJPpfKcc+xgcOzB6KlJEjdw4RJ41rMSeeTqPD7QsO1CvJ9uiJ/yhW4iSTKyhsmZ3JJDBw8Do2+cLevkddyLR9w==",
"resolved": "git+ssh://git@github.com/JLyne/Leaflet.git#0bf4e3f70c2559771592c077401027a6c4913376",
"integrity": "sha512-Fptn2BrpixOsx/+dAzObvWcdZML6+rCjSGxB8oeXt4sBCxHj4QuFB/8bAxMgzQW72oE0SytmMmLN+38WTRq3gA==",
"license": "BSD-2-Clause"
},
"node_modules/leven": {
@ -16196,9 +16196,9 @@
"peer": true
},
"leaflet": {
"version": "git+ssh://git@github.com/JLyne/Leaflet.git#843eb3124492dc48245cd187c6dc94c2f33b65c1",
"integrity": "sha512-QJPpfKcc+xgcOzB6KlJEjdw4RJ41rMSeeTqPD7QsO1CvJ9uiJ/yhW4iSTKyhsmZ3JJDBw8Do2+cLevkddyLR9w==",
"from": "leaflet@git+https://github.com/JLyne/Leaflet.git#843eb3124492dc48245cd187c6dc94c2f33b65c1"
"version": "git+ssh://git@github.com/JLyne/Leaflet.git#0bf4e3f70c2559771592c077401027a6c4913376",
"integrity": "sha512-Fptn2BrpixOsx/+dAzObvWcdZML6+rCjSGxB8oeXt4sBCxHj4QuFB/8bAxMgzQW72oE0SytmMmLN+38WTRq3gA==",
"from": "leaflet@git+https://github.com/JLyne/Leaflet.git#0bf4e3f70c2559771592c077401027a6c4913376"
},
"leven": {
"version": "3.1.0",

View File

@ -18,7 +18,7 @@
"dependencies": {
"@kyvg/vue3-notification": "2.3.0",
"@soerenmartius/vue3-clipboard": "^0.1",
"leaflet": "git+https://github.com/JLyne/Leaflet.git#843eb3124492dc48245cd187c6dc94c2f33b65c1",
"leaflet": "git+https://github.com/JLyne/Leaflet.git#0bf4e3f70c2559771592c077401027a6c4913376",
"lodash.debounce": "^4.0.8",
"modern-normalize": "^1.1.0",
"vue": "^3.2.37",

View File

@ -234,9 +234,7 @@ export default defineComponent({
center: new LatLng(0, 0),
fadeAnimation: false,
zoomAnimation: true,
zoomControl: false,
preferCanvas: true,
attributionControl: false,
crs: CRS.Simple,
worldCopyJump: false,
// markerZoomAnimation: false,

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import {Map, DomUtil, MapOptions} from 'leaflet';
import {Map, MapOptions} from 'leaflet';
export default class LiveAtlasLeafletMap extends Map {
declare _controlCorners: any;
@ -24,25 +24,4 @@ export default class LiveAtlasLeafletMap extends Map {
constructor(element: string | HTMLElement, options?: MapOptions) {
super(element, options);
}
// noinspection JSUnusedGlobalSymbols
_initControlPos() {
const corners: any = this._controlCorners = {},
l = 'leaflet-',
container = this._controlContainer =
DomUtil.create('div', l + 'control-container', this._container);
function createCorner(vSide: string, hSide: string) {
const className = l + vSide + ' ' + l + hSide;
corners[`${vSide}${hSide}`] = DomUtil.create('div', className, container);
}
createCorner('top', 'left');
createCorner('top', 'right');
createCorner('top', 'center');
createCorner('bottom', 'center');
createCorner('bottom', 'left');
createCorner('bottom', 'right');
}
}

View File

@ -14,7 +14,6 @@
* limitations under the License.
*/
@import "leaflet/controls";
@import "leaflet/popups";
@import "leaflet/tooltips";
@import "leaflet/markers";