kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Call API to track number of map sessions (to evaluate move to MapTiler Cloud)
rodzic
dbd2b2c537
commit
36103f2d3b
|
@ -17,6 +17,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import axios from 'axios'
|
||||
import { MglMap, MglGeolocateControl, MglNavigationControl, MglScaleControl, MglAttributionControl } from 'vue-mapbox'
|
||||
import MapRoute from './MapRoute.vue'
|
||||
import MapPhoto from './MapPhoto.vue'
|
||||
|
@ -171,6 +172,8 @@ export default {
|
|||
this.map.dragPan.disable()
|
||||
}
|
||||
this.highlightCurrentSummit()
|
||||
|
||||
axios.post(process.env.VUE_APP_API_URL + '/mapsession')
|
||||
},
|
||||
onMapClicked (event) {
|
||||
if (event.mapboxEvent.originalEvent.hitMarker) {
|
||||
|
|
|
@ -247,6 +247,8 @@ export default {
|
|||
}
|
||||
})
|
||||
this.updateRoute()
|
||||
|
||||
axios.post(process.env.VUE_APP_API_URL + '/mapsession')
|
||||
},
|
||||
onMapClicked (event) {
|
||||
if (this.$refs.draw.isDrawing() || event.mapboxEvent.originalEvent.hitMarker) {
|
||||
|
|
Ładowanie…
Reference in New Issue