有没有办法在 osmdroid bonuspack 中定位 InfoWindow?
Is there a way to positionate InfoWindow in osmdroid bonuspack?
我的代码:
Marker startMarker = new Marker(mMapView);
startMarker.setPosition(VBA.getPosition());
startMarker.setIcon(getResources().getDrawable(R.drawable.marker_hotel1));
startMarker.setTitle(VBA.getHotelName());
startMarker.setRelatedObject(null);
startMarker.setInfoWindow(new CustomInfoWindow(mMapView, startMarker));
mMapView.getOverlays().add(startMarker);
我的自定义信息窗口
public class CustomInfoWindow extends MarkerInfoWindow {
...SOME ATTRIBUTES....
public CustomInfoWindow(MapView mapView,Marker marker) {
super(R.layout.bonuspack_bubble_edited, mapView);
...OTHER CODE...
}
我想把气泡和标记分开。
将 layout_marginBottom 放在 R.layout.bonuspack_bubble_edited
上
我的代码:
Marker startMarker = new Marker(mMapView);
startMarker.setPosition(VBA.getPosition());
startMarker.setIcon(getResources().getDrawable(R.drawable.marker_hotel1));
startMarker.setTitle(VBA.getHotelName());
startMarker.setRelatedObject(null);
startMarker.setInfoWindow(new CustomInfoWindow(mMapView, startMarker));
mMapView.getOverlays().add(startMarker);
我的自定义信息窗口
public class CustomInfoWindow extends MarkerInfoWindow {
...SOME ATTRIBUTES....
public CustomInfoWindow(MapView mapView,Marker marker) {
super(R.layout.bonuspack_bubble_edited, mapView);
...OTHER CODE...
}
我想把气泡和标记分开。
将 layout_marginBottom 放在 R.layout.bonuspack_bubble_edited
上