OpenStreetMap logo OpenStreetMap

demonshreder's Diary Comments

Diary Comments added by demonshreder

Post When Comment
Rendering non-default language in OSM-Carto standard map

@Ghybu

For now Wikipedia hosts tiles through https://maps.wikimedia.org/osm-intl/{z} /{x}/{y}@2x.png?lang=${language} URLs. This map doesn’t have POIs, it only has streets and their names.

The main reason OSM can’t support changing of languages is that, OSM uses raster tiles. It creates images of 256x256 pixels to show the map which means the image can’t be changed once it is made, while Wikimedia too uses raster, they only render streets therefore it is very lightweight compared to a full map being rendered. I had to borrow a friend’s server with 4 cores and 32GB RAM, it still took about 1.2secs per tile.

Cost is definitely a reason to not offer maps in all languages, beyond that I think OSM is trying to move towards vector maps, which is the right way to approach this issue. I don’t have that much experience in serving vector data over the Internet, (VTM is a great library for offline maps on Android).

Rendering non-default language in OSM-Carto standard map

Thanks @aimomap & @PlaneMad

Would be really nice to see localized maps as a part of those smart city projects. Maybe we (community or commercially) could help the local governments achieve that.

Rendering non-default language in OSM-Carto standard map

Personally I dunno the viability of OSMCarto for multiple Indic maps as I feel they are resource intensive. I would like to prerender them as a whole and provide them on a server but I am missing something with render_list. This is where something like vector maps (on openstreetmap.in) help.

@Chetan_Gowda

Please do and share.

@naveenpf

I saw the Wikimedia maps earlier but I wasn’t able to find further resources on them but now I have read your diary page on it, I will look into it more.

@Zverik

I see, I was looking into that but read at - https://wiki.openstreetmap.org/wiki/Names#Localization - that a lua script should be enough so went through this process.