Select to view content in your preferred language

How can I get a map labeled in Chinese with the ArcGIS Silverlight API?

1003
5
10-28-2010 06:16 AM
mawanzhu
Deactivated User
I wan to use the  free ESRI map or Bingmap for base map, but they are all labeled in English, How can I get a map labeled in other language, such as in Chinese?  Would anyone help me? In VB.NET Code or XAML. Thanks very much!!!
0 Kudos
5 Replies
ShaningYu
Honored Contributor
I don't think you can since a label.text is actually sourced from a record's value that is entered in English.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
You can change the labels of a bing map by using the Culture property of the TileLayer.

For example:
 
<bing:TileLayer ID="BingLayer" LayerStyle="Road" Visible="True" ServerType="Production" Culture="fr-FR"
Token="{StaticResource BingKeyString}" /> 

gives labels in french.

I am not sure there is a chinese version at this time. I found this Microsoft link giving the possible cultures:
http://msdn.microsoft.com/en-us/library/cc981048.aspx
0 Kudos
mawanzhu
Deactivated User
Thanks very much. These is no Culture string for Chinese in the list yet.  While with BingMap API, I can get a Chinese Labeled source map in 2 step, the code is:
    Public Function GetChinaTileSource() As TileSource
        Dim tileSourceUri As New UriBuilder("http://r2.tiles.ditu.live.com/tiles/r{quadkey}.png?g=41") '中�?��?��?�系�?
        '   Dim tileLayer As New MapTileLayer()
        Dim tileSource As New LocationRectTileSource(tileSourceUri.Uri.ToString(), New LocationRect(New Location(60, 60), New Location(13, 140)), New Range(Of Double)(1, 20))
        Return tileSource
    End Function

' then in the map page
        Dim tileLayer As New MapTileLayer()
        Dim gts As New ChinaTileSource()
        tileLayer.TileSources.Add(gts.GetChinaTileSource())
        MyMap.Children.Add(tileLayer)
        MyMap.Mode = New MercatorMode

Can I do like that with ArcGIS API ?  How to?  Help me!
0 Kudos
dotMorten_esri
Esri Notable Contributor
The label is not generated on the fly but is "baked" into the image tiles. So if the image tiles doesn't have chinese labels baked into them, the service can't support it. In this case ArcGIS Online doesn't have any chinese tile services you can use, and it seems neither does Bing on their open imageservice, so you are basically out of luck. You will have to roll your own tile server using ArcGIS Server and your own data.
0 Kudos
mawanzhu
Deactivated User
The label is not generated on the fly but is "baked" into the image tiles. So if the image tiles doesn't have chinese labels baked into them, the service can't support it. In this case ArcGIS Online doesn't have any chinese tile services you can use, and it seems neither does Bing on their open imageservice, so you are basically out of luck. You will have to roll your own tile server using ArcGIS Server and your own data.


Thank you!
0 Kudos