Search code examples
androidosmdroid

Android - OSMbonuspack Marker not found


I cannot use OSMbonuspack markers since the import is never recognized

import org.osmdroid.bonuspack.overlays.Marker;

gives the error Cannot Resolve Symbol 'Marker' although I have both osmdroid(v 5.6.4) and osmbonuspack (v 6.3) in the project.

Does anyone know why can this not work?


Solution

  • Marker class was moved from osmbonuspack to the core osmdroid library some time ago. But the package was also changed to org.osmdroid.views.overlay ( github: org/osmdroid/views/overlay/Marker.java ) so just change the import.