Newer
Older
smart_construction / miniprogram / pages / earth / earth.wxml
dutingting on 7 Jun 2023 3 KB 地图控件升级
<!--miniprogram/pages/earth/earth.wxml-->
<view class="" hover-class="none" hover-stop-propagation="false" style="width: 100%; height: 100%;">
 <!-- <navigator open-type="switchTab" url="{{urlTab}}"><view>返回日志页</view></navigator> -->
	<!-- <view class="map_container"> -->
	<van-search value="{{ value }}" label="地址"  shape="round" background="#ffcf00" placeholder="请输入搜索关键词" bind:change="onChange">
	</van-search>

	<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap"   scale="20"  bindregionchange="bindregionchange" enable-satellite="{{enableSsatellite}}" scale="13" show-location style="width: 100%; height: 100%;">
		<cover-view wx:if="{{isShow}}" class="map-search-list {{isShow ? '' : 'map-hide'}}">
			<cover-view bindtouchstart="bindSearch" wx:key="searchId" data-keywords="{{item.title}}" data-location="{{item.location}}" class="map-box" wx:for="{{tips}}">
				{{item.title}} {{item.address}}
			</cover-view>
		</cover-view>

		<cover-view class="cover">{{longitude}},{{latitude}}</cover-view>

        <!-- <cover-view class="cover1" wx:for="{{ controls }} wx:key={{ item.id }}">
            <cover-image src="../../images/add.png" style="{{item.position}}" mode=""/>
        </cover-view> -->
        <cover-image 
            src="../../images/copy.png" style="position: absolute;right: {{position1.right}};top: {{position1.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='1' />
        <cover-image src="../../images/write.png" style="position: absolute;right: {{position2.right}};top: {{position2.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='2'/>
        <cover-image src="../../images/add.png" style="position: absolute;right: {{position3.right}};top: {{position3.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='3'/>
        <cover-image src="../../images/navigation.png" style="position: absolute;right: {{position4.right}};bottom: {{position4.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='4'/>
        <cover-image src="../../images/gps.png" style="position: absolute;left: {{position5.left}};bottom: {{position5.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='5'/>
        <cover-image src="../../images/aim.png" style="position: absolute;left: {{position6.left}};bottom: {{position6.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='6'/>
        <cover-image src="../../images/applocat.png" style="position: absolute;left: {{position7.left}};top: {{position7.top}};width: 60rpx;height: 60rpx;" mode="" />
        <cover-image src="../../images/back.png" style="position: absolute;right: {{position8.right}};bottom: {{position8.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='8'/>
	</map>


</view>
<van-popup show="{{ show }}" closeable close-icon="close" position="bottom" custom-style="height: 70%;" bind:close="onClose" bind:after-leave="leave">
	<van-cell-group>
		<van-field   type="textarea"  bind:blur="confirmdevcodes"
		placeholder="请输入定位设备编号用换行隔开" autosize border="{{ false }}" />
	</van-cell-group>
</van-popup>