mapsforge / vtm

OpenGL vector map library - running on Android, iOS, Desktop and browser.
GNU Lesser General Public License v3.0
272 stars 89 forks source link

TileSource: httpFactory by default #1066

Closed Psijic closed 1 year ago

Psijic commented 1 year ago

I see, the map loading is not working if you skip .httpFactory(OkHttpEngine.OkHttpFactory(builder)). Currently I copy-pasted this file from the vtm-parent sample, but could you include the default factory in the library?

devemux86 commented 1 year ago

As seen in the integration guide, the online tiles need some extra dependencies.

Many users are only interested in offline maps, which do not need these extra dependencies.

Psijic commented 1 year ago

OkHttpEngine class is only 80 strings with imports and OkHttp is already used by Vtm. Looks like proguard should make this addon size negligible.