<template>
	<view class="box">
		<map class="map" :latitude="latitude" :longitude="longitude"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				latitude: '',
				longitude: '',
			}
		},
		methods: {

		},
		onLoad(data) {
			console.log(JSON.parse(data.ambitus), 999999)
			let ambitus = JSON.parse(data.ambitus)
			this.latitude = ambitus.latitude
			this.longitude = ambitus.longitude
			uni.setNavigationBarTitle({
				title: ambitus.title
			});
		
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		height: 100vh;
		width: 100%;

		.map {
			width: 100%;
			height: 100%;
		}
	}
</style>
