Skip to content

Commit

Permalink
Revert "tested prewarming of the map"
Browse files Browse the repository at this point in the history
This reverts commit 77c22cb.
  • Loading branch information
CommanderStorm committed Apr 6, 2024
1 parent 77c22cb commit f7f3a5c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions webclient/components/DetailsInteractiveMap.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<script setup lang="ts">
import type { BackgroundLayerSpecification, Coordinates, ImageSource } from "maplibre-gl";
import {
AttributionControl,
FullscreenControl,
GeolocateControl,
Map,
Marker,
NavigationControl,
prewarm,
} from "maplibre-gl";
import { AttributionControl, FullscreenControl, GeolocateControl, Map, Marker, NavigationControl } from "maplibre-gl";
import { FloorControl } from "~/composables/FloorControl";
import { webglSupport } from "~/composables/webglSupport";
import type { components } from "~/api_types";
Expand All @@ -27,7 +19,6 @@ type DetailsResponse = components["schemas"]["DetailsResponse"];
function loadInteractiveMap(fromUi = false) {
if (!webglSupport) return;
prewarm();
const doMapUpdate = function () {
// The map might or might not be initialized depending on the type
Expand Down Expand Up @@ -90,7 +81,6 @@ function createMarker(hueRotation = 0) {
}
function initMap(containerId: string) {
prewarm();
const map = new Map({
container: containerId,
Expand Down

0 comments on commit f7f3a5c

Please sign in to comment.