Important question from potential customer

2 posts, 0 answers
  1. Wojcik
    Wojcik avatar
    1 posts
    Member since:
    Apr 2011

    Posted 07 Apr 2011 Link to this post

    Hello. Can somebody help me with one important question? Can Telerik's RadMap work into corporation INTRANET without any connection to the internet? In my big network, I have intranet www server, which serves png files like openstreetmap, structure file tiles map is:{0}/{1}/{2}.png where {0} and {1} and {2} variables are like in OpenStreetMap structure{0}/{1}/{2}.png  
    At this moment for testing I'm using simple free MapControl library which displays maps very well. But I need something more functional (best product) like Telerik's RadMap.

    I must know, can it works in intranet... if it will work maybe my company buy this product.

    Can somebody from technician help me

    Thak you very much.

    Sorry for my simple (bad) english grammar. :-)


  2. Andrey
    Andrey avatar
    1681 posts

    Posted 07 Apr 2011 Link to this post

    Hi Wojcik,

    Yes, you can use the RadMap control to show INTRANET version of openstreetmap tiles.
    Note, that features like Search, Route and Geocode require internet connection, because they use the Bing Maps services.

    You can create custom map tile source and map provider which will uses images from your intranet site. You can use the following sample code to do it:
    /// <summary> 
    /// Tile source which read map tiles from the file system. 
    /// </summary> 
    public class LocalhostTileSource : TiledMapSource 
        private string tileUriFormat; 
        /// <summary> 
        /// Initializes a new instance of the FileSystemTileSource class. 
        /// </summary> 
        /// <param name="tileUriFormat">Format string to access tiles on the localhost.</param> 
        public LocalhostTileSource(string tileUriFormat) 
            : base(1, 20, 256, 256) 
            this.tileUriFormat = tileUriFormat; 
        /// <summary> 
        /// Initialize provider. 
        /// </summary> 
        public override void Initialize() 
            // Raise provider intialized event. 
        /// <summary> 
        /// Gets the image URI. 
        /// </summary> 
        /// <param name="tileLevel">Tile level.</param> 
        /// <param name="tilePositionX">Tile X.</param> 
        /// <param name="tilePositionY">Tile Y.</param> 
        /// <returns>URI of image.</returns> 
        protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY) 
            int zoomLevel = ConvertTileToZoomLevel(tileLevel); 
            string url = this.tileUriFormat.Replace("{zoom}", zoomLevel.ToString(CultureInfo.InvariantCulture)); 
            url = url.Replace("{x}", tilePositionX.ToString(CultureInfo.InvariantCulture)); 
            url = url.Replace("{y}", tilePositionY.ToString(CultureInfo.InvariantCulture)); 
            return new Uri(url); 

    /// <summary> 
    /// Map provider which read map tiles from the file system. 
    /// </summary> 
    public class LocalhostProvider : TiledProvider 
        /// <summary> 
        /// Initializes a new instance of the LocalhostProvider class. 
        /// </summary> 
        /// <param name="tileUriFormat">Format string to access tiles on the localhost.</param> 
        public LocalhostProvider(string tileUriFormat) 
            : base() 
            LocalhostTileSource source = new LocalhostTileSource(tileUriFormat); 
            this.MapSources.Add(source.UniqueId, source); 
        /// <summary> 
        /// Returns the SpatialReference for the map provider. 
        /// </summary> 
        public override ISpatialReference SpatialReference 
                return new MercatorProjection(); 

    <UserControl x:Class="LocalhostMapProvider.MainPage"
                 d:DesignHeight="300" d:DesignWidth="400"
        <Grid x:Name="LayoutRoot" Background="White"
            <telerik:RadMap x:Name="radMap" 

    public partial class MainPage : UserControl 
        public MainPage() 
            this.radMap.Provider = new LocalhostProvider( 

    Hope this helps.

    Kind regards,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top