NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I want to put my ItemizedOverlayWithBubble by OSMdroid on top of the marker, because now it's on the marker and when it shows my marker hides behind the bubble, because it's the same GeoPoint. What is the correct way?

    final ArrayList<ExtendedOverlayItem> items = new ArrayList<ExtendedOverlayItem>();
    ExtendedOverlayItem a = new ExtendedOverlayItem("Hannover", "SampleDescription", new GeoPoint(42.34105549, -3.69639444), this);
    items.add(0, a);
    ItemizedOverlayWithBubble<ExtendedOverlayItem> mMyLocationOverlay = 
            new ItemizedOverlayWithBubble<ExtendedOverlayItem>
            (this, items, mapView);
    mapView.getOverlays().add(mMyLocationOverlay);

Thanks a lot

asked 12 Jan '14, 16:39

marioerro's gravatar image

marioerro
1222
accept rate: 0%

edited 13 Jan '14, 00:15

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

2

If you have a look at the #osmdroid questions, you will recognize that they aren't answered that often. So you might use the official OSMdroid support channels instead to get a quick answer :/

(12 Jan '14, 18:22) iii

a.setMarkerHotspot(OverlayItem.HotspotPlace.TOP_CENTER);

If someone want to know the solution, this is the solution

permanent link

answered 12 Jan '14, 22:42

marioerro's gravatar image

marioerro
1222
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×98
×47
×42

question asked: 12 Jan '14, 16:39

question was seen: 5,381 times

last updated: 13 Jan '14, 00:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum