nanka iroiro

Closes #1188
This commit is contained in:
syuilo
2018-03-06 08:35:25 +09:00
parent bd167b48d5
commit e515276e15
10 changed files with 93 additions and 63 deletions

View File

@@ -137,17 +137,20 @@ export default Vue.extend({
// Draw map
if (this.p.geo) {
(this as any).os.getGoogleMaps().then(maps => {
const uluru = new maps.LatLng(this.p.geo.latitude, this.p.geo.longitude);
const map = new maps.Map(this.$refs.map, {
center: uluru,
zoom: 15
const shouldShowMap = (this as any).os.isSignedIn ? (this as any).os.i.client_settings.showMaps : true;
if (shouldShowMap) {
(this as any).os.getGoogleMaps().then(maps => {
const uluru = new maps.LatLng(this.p.geo.latitude, this.p.geo.longitude);
const map = new maps.Map(this.$refs.map, {
center: uluru,
zoom: 15
});
new maps.Marker({
position: uluru,
map: map
});
});
new maps.Marker({
position: uluru,
map: map
});
});
}
}
},
beforeDestroy() {
@@ -448,6 +451,9 @@ export default Vue.extend({
width 100%
height 200px
&:empty
display none
> .app
font-size 12px
color #ccc