NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, I am trying to use OSM with the Syncfusion Map component. Everything looks great, but I just encountered the issue where all the country names are translated into their default region language. For example, the United Kindom is displayed as the United Kingdom, Germany as Deutschland, and Poland as Polska.

How can I make it more general and use just English names so all from the previous example will be displayed as United Kindom, Germany and Poland?

Please see below the simplest code snipped using the OSM as a Sublayer for SfMaps

<sfmaps> <mapszoomsettings enable=""/> <mapslayers> <mapslayer urltemplate="https://tile.openstreetmap.org/level/tileX/tileY.png" tvalue="string"/> </mapslayers> </sfmaps>

asked 05 Jan, 15:43

Pawelszo's gravatar image

Pawelszo
11112
accept rate: 0%


You would need to use a tile provider that offers English labels all across the globe.

As you are using raster tiles, the labels are ingrained in the images, so the normal tiles by the OSMF won't help.

Instead you'll need an alternative tile provider with raster tiles that carries English labels only.

Have a look at https://wiki.openstreetmap.org/wiki/Raster_tile_providers

where you'll find several ones.

Example map with raster tiles where English is used globally: www.osmap.uk

permanent link

answered 08 Jan, 14:28

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 10 Jan, 08:32

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×535
×72
×1
×1

question asked: 05 Jan, 15:43

question was seen: 405 times

last updated: 10 Jan, 08:32

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum