Places: Code clean-up

This commit is contained in:
Michael Mayer 2021-11-27 10:03:12 +01:00
parent f8d64daf00
commit fdfe9771ca

View file

@ -24,7 +24,6 @@
</template> </template>
<script> <script>
import {Photo, TypeLive, TypeVideo} from "model/photo";
import mapboxgl from "mapbox-gl"; import mapboxgl from "mapbox-gl";
import Api from "common/api"; import Api from "common/api";
import Thumb from "model/thumb"; import Thumb from "model/thumb";
@ -42,7 +41,6 @@ export default {
attribution: '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>', attribution: '<a href="https://www.maptiler.com/copyright/" target="_blank">&copy; MapTiler</a> <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>',
options: {}, options: {},
mapFont: [], mapFont: [],
photos: [],
result: {}, result: {},
filter: {q: this.query()}, filter: {q: this.query()},
lastFilter: {}, lastFilter: {},
@ -270,7 +268,6 @@ export default {
return; return;
} }
this.photos = {};
this.result = response.data; this.result = response.data;
this.map.getSource("photos").setData(this.result); this.map.getSource("photos").setData(this.result);