OpenStreetMapProvider question . . .

7 posts, 2 answers
  1. Tamir Kaneh
    Tamir Kaneh avatar
    3 posts
    Member since:
    Mar 2010

    Posted 15 Nov 2010 Link to this post

    hello.
    i am using RadMap for silverlight 4, and using this provider .
    By default each country information(labels) is in English , Russian, Hebrew, Arabic.
    How can i change the setting for showing me only info with english labels ?

    like in this example :http://osm.ev-en.org/

    in the right side of the screen there is a (+) mark ... and there you can change the map language.

    i tried to use the property , but it didn't get any effect.

    RadMap.Language = 'en-us'

    do i need to write my own provider ?
    I discovered that the tiles url built with language code

     

    http://a.tiles.osm.ev-en.org/"+code+"osm/${z}/${x}/${y}.png

     

  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Nov 2010 Link to this post

    Hi Tamir Kaneh,

    Unfortunately the original OSM service at openstreetmap.org which is used in our OpenStreetProvider does not provide this feature. The service you are referencing to is created by one of the OSM enthusiast and is not an official OSM map source. You can use it through your own custom map provider.

    Sincerely yours,
    Andrey Murzov
    the Telerik team
    See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  3. DevCraft banner
  4. Tamir Kaneh
    Tamir Kaneh avatar
    3 posts
    Member since:
    Mar 2010

    Posted 18 Nov 2010 Link to this post

    thanks for your replay.

    Do you have any taturial that explains how to do it ?

    what is the variants i need to supplay to the custom provider ?
  5. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Nov 2010 Link to this post

    Hi Tamir Kaneh,

    I have attached a sample solution with custom Open Street map provider.
    I hope it helps.

    Best wishes,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  6. Tamir Kaneh
    Tamir Kaneh avatar
    3 posts
    Member since:
    Mar 2010

    Posted 20 Nov 2010 Link to this post


    Thanks, It is working great.
  7. Nikolai
    Nikolai avatar
    1 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2012 Link to this post

    Hello,

    Is it possible to set preffered Culture \ Languange for OSM and Bing provider using the latest version of RamMap?
    If it is true, show please c# code how to do it or documentation reference, please.
  8. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 08 Jun 2012 Link to this post

    Hello Nikolai,

    Currently the Bing Maps provider uses a culture info from the Language property of RadMap. By default it is "en-US". You can specify the Language property value in XAML code or from the code behind for example to "de-DE" to get a map in German.
    The sample code is below.
    <UserControl x:Class="MapLocalization.MainPage"
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="400">
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadMap x:Name="radMap" Language="de-DE">
                <telerik:RadMap.Provider>
                    <telerik:BingMapProvider ApplicationId="xxxx-yyyy-zzzz" />
                </telerik:RadMap.Provider>
            </telerik:RadMap>
        </Grid>
    </UserControl>

    You can look at the languages which are supported by Bing Maps Imagery Service using the following link:
    http://msdn.microsoft.com/en-us/library/cc981048.aspx

    Unfortunately the OSM does not support this feature.

    All the best,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner