shift polar

This commit is contained in:
Benjamin Takats
2022-12-01 23:28:06 +01:00
parent 80a0ff3e99
commit c99c780023

View File

@@ -95,9 +95,10 @@
earth: null, earth: null,
init() { init() {
this.earth = new Earth(this.$refs.myearth, { this.earth = new Earth(this.$refs.myearth, {
location : {lat: 18, lng: 50}, location : {lat: {{ $cities->first()->latitude }}, lng: {{ $cities->first()->longitude }}},
zoom: 1.05, zoom: 1.05,
light: 'none', light: 'none',
polarLimit: 0.6,
transparent : true, transparent : true,
mapSeaColor : 'RGBA(34, 34, 34,0.76)', mapSeaColor : 'RGBA(34, 34, 34,0.76)',
@@ -108,7 +109,7 @@
autoRotate: true, autoRotate: true,
autoRotateSpeed: 0.7, autoRotateSpeed: 0.7,
autoRotateDelay: 4000, autoRotateDelay: 500,
}); });
this.earth.addEventListener('ready', function() { this.earth.addEventListener('ready', function() {
@foreach($cities as $city) @foreach($cities as $city)