<!--pages/o2oCity/o2oCity.wxml-->
<view class="map">
	<view class="position">
		<view class="left">
			<view class="leftcontent">
				<icon class="iconfont icon-icon_location"></icon>
			</view>
			<view class="rightcontent">
				<text class="span">{{ city }}</text>
			</view>
		</view>
		<view class="search_box">
			<icon class="iconfont icon-sousuo1"></icon>
			<input type="text" value="{{address_detail}}" name="address_detail" placeholder="输入您所在的地点" bindinput="addressinpbtn" bindconfirm="searchconfirmbtn" />
		</view>
		<view class="right" catchtap="goback">
			<view class="span">取消</view>
		</view>
	</view>

	<view class="address-list" wx:if="{{suggestionshow1 && !mapshow}}">
		<block wx:for="{{suggestion1}}" wx:key="index">
			<view class="address-list-item" bindtap="backfill1" id="{{index}}">{{item.title}}----{{item.addr}}</view>
		</block>
	</view>

	<cover-view class="seachboxBottom" wx:if="{{suggestionshow}}">
		<block wx:for="{{suggestion}}" wx:key="index">
			<cover-view class="seachboxContent">
				<cover-view bindtap="backfill" id="{{index}}">{{item.title}}</cover-view>
			</cover-view>
		</block>
	</cover-view>
	<map wx:if="{{mapshow}}" id="myMap" markers="{{markers}}" style="width:100%;height:960rpx;" longitude="{{address_longitude}}"
	 latitude="{{address_latitude}}" scale='{{scaleData}}' show-location="{{true}}" bindmarkertap="getmarkertap">
		<cover-view class='ten'>
			<cover-view class='ten_l' bindtap='addbtn'>+</cover-view>
			<cover-view class='ten_l' bindtap='minusbtn'>-</cover-view>
		</cover-view>
	</map>
	<view wx:if="{{mapshow}}" class="mapmessage">
		<view class="left">
			<view class="top">
				{{mapmessageData.title}}
			</view>
			<view class="bottom">
				地址:{{mapmessageData.message}}
			</view>
		</view>
		<view class="right">
			<view class="button" catchtap="buttonbtn">
				使用该地址
			</view>
		</view>
	</view>
</view>
<!-- <shopfoot></shopfoot> -->
