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)
|
// // console.log('this.language: ', this.language)
|
||||||
// // is unclear, how to
|
// // is unclear, how to
|
||||||
// // this.language.setLanguage('de') // makes error
|
// // this.language.setLanguage('de') // makes error
|
||||||
// documentation: https://docs.mapbox.com/mapbox-gl-js/example/center-on-feature/
|
|
||||||
this.mapFlyToCenter()
|
this.mapFlyToCenter()
|
||||||
},
|
},
|
||||||
setStyle(url) {
|
setStyle(url) {
|
||||||
@ -171,6 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mapFlyToCenter() {
|
mapFlyToCenter() {
|
||||||
if (this.map) {
|
if (this.map) {
|
||||||
|
// example: https://docs.mapbox.com/mapbox-gl-js/example/center-on-feature/
|
||||||
this.map.flyTo({
|
this.map.flyTo({
|
||||||
center: this.mapCenter,
|
center: this.mapCenter,
|
||||||
zoom: this.mapZoom,
|
zoom: this.mapZoom,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user