iMaker Infosoft
iMaker Infosoft

Reputation: 36

I want to add multi-language in osmdroid

I am using OSMdroid for offline map, but map displays in default English language because tiles downloaded are in English. Anyone have a solution on how to add different languages in tile or openstreetmap?

Here's my code ...

   context = MainActivity.this;
    map.setBuiltInZoomControls(true);
    map.setMultiTouchControls(true);
    mapController = map.getController();
    mapController.setZoom(12);
    map.setMaxZoomLevel(17);
    map.useDataConnection();
    map.setTileSource(TileSourceFactory.MAPQUESTOSM);

Now I want to load TileSource according to user required language like to some place information in English, Dutch, French etc. Or any other solution for multi-language.

Upvotes: 1

Views: 322

Answers (1)

scai
scai

Reputation: 21469

With raster tiles, you will need a tile server for every language you want to support. This is quite heavy. The better solution would be switching to vector tiles e.g. by using mapsforge. With vector tiles you can simply render the names you want.

Upvotes: 1

Related Questions