Skip to content

Using MapView instead of SupportMapFragment #4

@jt7785

Description

@jt7785

Sorry if this isn't the place. It is my first time commenting on such libraries. I've looked for a way of contacting you personally, but I guess this will have to do.

I'm having issues with the labels, which do NOT appear.

I'm using a MapView instead of a fragment in my xml. This is because my code is not in an activity, but in a fragment. I could be wrong in the design, but that's what I have.

What do you think is the problem? The code in java looks pretty much like you instructed, only difference I can think of is in the layout (I can also add the java code if you need).
So my layout looks like this:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.google.android.gms.maps.MapView
android:id="@+id/agenda_map"
android:layout_width="match_parent"
android:layout_height="match_parent"/>

<com.exlyo.gmfmt.FloatingMarkerTitlesOverlay
android:id="@+id/agenda_map_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions