Google maps 点击谷歌地图分区按钮上的事件?
我试图在本地cordova google maps分区上添加一个html按钮 问题是地图的图层不断地请求聚焦 如果我使用“setClickable(false)”事件,按钮工作正常,但地图不可用 有办法吗?将按钮放在地图所在的div内,如下所示:Google maps 点击谷歌地图分区按钮上的事件?,google-maps,cordova,ionic2,cordova-plugins,ionic3,Google Maps,Cordova,Ionic2,Cordova Plugins,Ionic3,我试图在本地cordova google maps分区上添加一个html按钮 问题是地图的图层不断地请求聚焦 如果我使用“setClickable(false)”事件,按钮工作正常,但地图不可用 有办法吗?将按钮放在地图所在的div内,如下所示: <ion-header> <ion-navbar color="primary"> <ion-title>Map Demo</ion-title> </ion-nav
<ion-header>
<ion-navbar color="primary">
<ion-title>Map Demo</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<div #map id="map" style="height:100%;">
<div class="action-buttons">
<button color="primary" ion-button text-only>
Button 1
</button>
<button color="primary" ion-button text-only>
Button 2
</button>
</div>
</div>
</ion-content>
.action-buttons {
display: block;
width: calc(100% - 16px);
position: absolute;
top: 16px;
right: 16px;
text-align: right;
z-index: 999;
button {
display: inline-block;
margin: 4px;
}
}