<template>
	<view class="map_container">
	  <!--定义页面结构，可以使用地图组件也能使用其他组件 -->
	</view>
<!-- <view>
		<cu-custom bgColor="bg-gradual-pink" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">位置</block>
		</cu-custom>
		 <view class="page-body">
			<view class="page-section page-section-gap">
				 <map style="width: 100%; height: 800px;"  latitude="38.55">
				</map> 
			</view>
		</view> 
		
	
	</view> -->
	
</template>

<script>

	export default {
		data() {
			return {
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				/* latitude: null,
				longitude: null, */
				amapPlugin:null
				}
		},
		created() {
			var amapFile = require('../../components/amap/amap-wx.js')
		 
		 	    var that = this;
		 	    var myAmapFun = new amapFile.AMapWX({key:'d8ed2499a2fb9634f843f1e500a24726'});
		 	    myAmapFun.getPoiAround({
		 	      success: function(data){
		 	        //成功回调
		 	      },
		 	      fail: function(info){
		 	        //失败回调
		 	        console.log(info)
		 	      }
		 	    })
		 	
		 
		 	/* uni.getLocation({
			    type: 'wgs84',
			    success: function (res) {
					alert(res)
			        console.log('当前位置的经度：' + res.longitude);
			        console.log('当前位置的纬度：' + res.latitude);
			    }
			}); 
		 uni.chooseLocation({
			success: function (res) {
				console.log('位置名称：' + res.name);
				console.log('详细地址：' + res.address);
				console.log('纬度：' + res.latitude);
				console.log('经度：' + res.longitude);
				this.latitude=res.latitude;
				this.longitude=res.longitude;
			}
		}); */
	
		/* 	uni.getLocation({
			    type: 'wgs84',
			    success: function (res) {
					this.latitude=res.latitude;
					this.longitude=res.longitude;
			        console.log('当前位置的经度：' + res.longitude);
			        console.log('当前位置的纬度：' + res.latitude);
			    }
			});
 */
		},
		methods: {

		}
	}
</script>

<style>
	.map_container{
	  position: absolute;
	  top: 0;
	  bottom: 0;
	  left: 0;
	  right: 0;
	}
</style>
