diff --git a/cmd/mtwebmapper/client/src/App.vue b/cmd/mtwebmapper/client/src/App.vue index 67b716f..a83eb56 100644 --- a/cmd/mtwebmapper/client/src/App.vue +++ b/cmd/mtwebmapper/client/src/App.vue @@ -15,6 +15,56 @@ Players + + + + + + + Buildings + + + + + + + + Points of Interest + + + + + + + + Travelnet + + + + + + + + Other + + + + + + Players + + + + + + + + fa-crosshairs + + @@ -120,11 +170,19 @@ export default { mounted() { fetch("players").then(response => response.json().then((data) => { this.$store.commit("setPlayers", data); - })) + })); + fetch("poi").then(response => response.json().then((data) => { + this.$store.commit("setPointFeatures", data); + })); }, methods: { refreshContent() { this.$store.dispatch("manualUpdate"); + }, + goToPlayer(player) { + console.log(player); + const coords = [player.geometry.coordinates[1], player.geometry.coordinates[0]]; + this.$store.commit("setMapCenter", coords) } } } diff --git a/cmd/mtwebmapper/client/src/components/MapView.vue b/cmd/mtwebmapper/client/src/components/MapView.vue index 418a366..1bf270a 100644 --- a/cmd/mtwebmapper/client/src/components/MapView.vue +++ b/cmd/mtwebmapper/client/src/components/MapView.vue @@ -1,7 +1,27 @@