mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Move comment
This commit is contained in:
parent
844bfb4cfb
commit
fbf1f74098
@ -162,7 +162,6 @@ export default {
|
||||
// // console.log('this.language: ', this.language)
|
||||
// // is unclear, how to
|
||||
// // this.language.setLanguage('de') // makes error
|
||||
// documentation: https://docs.mapbox.com/mapbox-gl-js/example/center-on-feature/
|
||||
this.mapFlyToCenter()
|
||||
},
|
||||
setStyle(url) {
|
||||
@ -171,6 +170,7 @@ export default {
|
||||
},
|
||||
mapFlyToCenter() {
|
||||
if (this.map) {
|
||||
// example: https://docs.mapbox.com/mapbox-gl-js/example/center-on-feature/
|
||||
this.map.flyTo({
|
||||
center: this.mapCenter,
|
||||
zoom: this.mapZoom,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user