Remove remaining leaflet control references
This commit is contained in:
parent
14674b774e
commit
9fe89c2d71
12
package-lock.json
generated
12
package-lock.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
@import "leaflet/controls";
|
||||
@import "leaflet/popups";
|
||||
@import "leaflet/tooltips";
|
||||
@import "leaflet/markers";
|
||||
|
Loading…
Reference in New Issue
Block a user