Search code examples
androiddictionarypositioningmarkerosmdroid

Is there a way to positionate InfoWindow in osmdroid bonuspack?


My code:

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);

My CustomInfoWindow

public class CustomInfoWindow extends MarkerInfoWindow {

    ...SOME ATTRIBUTES....

    public CustomInfoWindow(MapView mapView,Marker marker) {
        super(R.layout.bonuspack_bubble_edited, mapView);

        ...OTHER CODE...

    }

Click here to open image

I would like to distantiate the bubble from the marker.


Solution

  • Put layout_marginBottom on R.layout.bonuspack_bubble_edited