From c99215e25940683ad85ec92634d20c25e100991d Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 23 Jul 2021 22:28:06 +0100 Subject: [PATCH] Use generic names for extended leaflet classes --- src/components/Map.vue | 6 +++--- src/components/map/MapContextMenu.vue | 4 ++-- src/components/map/control/ChatControl.vue | 4 ++-- src/components/map/control/ClockControl.vue | 4 ++-- src/components/map/control/CoordinatesControl.vue | 4 ++-- src/components/map/control/LinkControl.vue | 4 ++-- src/components/map/control/LogoControl.vue | 6 +++--- src/components/map/layer/MarkerSetLayer.vue | 10 +++++----- src/components/map/layer/PlayersLayer.vue | 4 ++-- src/components/map/vector/Areas.vue | 12 ++++++------ src/components/map/vector/Circles.vue | 12 ++++++------ src/components/map/vector/Lines.vue | 10 +++++----- src/components/map/vector/Markers.vue | 4 ++-- .../{DynmapMap.ts => LiveAtlasLeafletMap.ts} | 2 +- ...mapLayerControl.ts => LiveAtlasLayerControl.ts} | 2 +- src/leaflet/icon/{DynmapIcon.ts => GenericIcon.ts} | 14 +++++++------- src/leaflet/layer/LayerManager.ts | 8 ++++---- ...{DynmapLayerGroup.ts => LiveAtlasLayerGroup.ts} | 12 ++++++------ .../{DynmapPolygon.ts => LiveAtlasPolygon.ts} | 8 ++++---- .../{DynmapPolyline.ts => LiveAtlasPolyline.ts} | 8 ++++---- src/util/areas.ts | 12 ++++++------ src/util/circles.ts | 12 ++++++------ src/util/lines.ts | 8 ++++---- src/util/markers.ts | 6 +++--- 24 files changed, 88 insertions(+), 88 deletions(-) rename src/leaflet/{DynmapMap.ts => LiveAtlasLeafletMap.ts} (96%) rename src/leaflet/control/{DynmapLayerControl.ts => LiveAtlasLayerControl.ts} (99%) rename src/leaflet/icon/{DynmapIcon.ts => GenericIcon.ts} (91%) rename src/leaflet/layer/{DynmapLayerGroup.ts => LiveAtlasLayerGroup.ts} (95%) rename src/leaflet/vector/{DynmapPolygon.ts => LiveAtlasPolygon.ts} (82%) rename src/leaflet/vector/{DynmapPolyline.ts => LiveAtlasPolyline.ts} (83%) diff --git a/src/components/Map.vue b/src/components/Map.vue index ea53818..7134336 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -46,7 +46,7 @@ import LogoControl from "@/components/map/control/LogoControl.vue"; import {MutationTypes} from "@/store/mutation-types"; import {DynmapPlayer} from "@/dynmap"; import {ActionTypes} from "@/store/action-types"; -import DynmapMap from "@/leaflet/DynmapMap"; +import LiveAtlasLeafletMap from "@/leaflet/LiveAtlasLeafletMap"; import {LoadingControl} from "@/leaflet/control/LoadingControl"; import MapContextMenu from "@/components/map/MapContextMenu.vue"; import {Coordinate} from "@/index"; @@ -234,7 +234,7 @@ export default defineComponent({ }, mounted() { - this.leaflet = new DynmapMap(this.$el.nextElementSibling, Object.freeze({ + this.leaflet = new LiveAtlasLeafletMap(this.$el.nextElementSibling, Object.freeze({ zoom: this.configuration.defaultZoom, center: new LatLng(0, 0), fadeAnimation: false, @@ -245,7 +245,7 @@ export default defineComponent({ crs: CRS.Simple, worldCopyJump: false, // markerZoomAnimation: false, - })) as DynmapMap; + })) as LiveAtlasLeafletMap; window.addEventListener('keydown', this.handleKeydown); diff --git a/src/components/map/MapContextMenu.vue b/src/components/map/MapContextMenu.vue index 6606a0d..46c17c1 100644 --- a/src/components/map/MapContextMenu.vue +++ b/src/components/map/MapContextMenu.vue @@ -25,7 +25,7 @@