Basically I need a java swing or javafx component that supports online map sources (googlemaps & openstreetmap) as well as offline map sources.
I found that mapsforge can do the trick (but it does not support google maps as a source). So I came across osmdroid library which replaces the Android's MapView. The thing is that osmdroid supports everything (googlemaps & openstreetmap and offline map sources). And I am wondering if it is possible to use osmdroid in a java swing application (not running on android), running on a desktop.
Thanks in advance.
Osmdroid depends on Android SDK heavilly. So no, it cannot by used without android.