Custom provider for my own custom map server

7 posts, 1 answers
  1. Arash
    Arash avatar
    22 posts
    Member since:
    Aug 2010

    Posted 22 Feb 2012 Link to this post

    Hi all,

    I have map tiles in my own database. How can I use them in my custom map provider?
    The GetTile method in instructions returns the URI of the image but I have the actual image in my database. How can I make RadMap to work with it?
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 24 Feb 2012 Link to this post

    Hi Arash,

    You cannot access tiles stored in the database directly from the custom map provider. But you can create your own tile server which will get tile requests, read tiles from the database and return them.


    Regards,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Arash
    Arash avatar
    22 posts
    Member since:
    Aug 2010

    Posted 25 Feb 2012 Link to this post

    I'm sorry I'm new to Silverlight and please excuse me if I'm doing any mistakes. I have two projects in my SL project. One of them is my web server. So, Is it possible to implement my custom map server in my web server? I mean store a database there and an API for returning tiles there? But what will be the URL? Or you mean that I should provide my own web service in another server? Could you please give an example of doing this?
  5. Arash
    Arash avatar
    22 posts
    Member since:
    Aug 2010

    Posted 26 Feb 2012 Link to this post

    In this blog it is defined how to provide offline server with tiles stored in IIS directory. http://blogs.telerik.com/blogs/posts/11-09-27/radmap-for-silverlight-how-to-consume-tiles-from-local-server.aspx 

    But, my tiles have been stored in a SQL Server database. How can I achieve this goal with my database? 
  6. Arash
    Arash avatar
    22 posts
    Member since:
    Aug 2010

    Posted 28 Feb 2012 Link to this post

    No one is gonna answer me?
  7. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 29 Feb 2012 Link to this post

    Hi Arash,

    Unfortunately we don't have an example of the tile server which read tiles from the database and creation of those tile server is outside of the scope of the RadMap control. I'm sorry. As a quick suggestion I could recommend the following:

    Create new ASP.NET page in your web project. This page should process request parameters and get zoom level and X,Y coordinates of the tile. Then it should read image from the database and return it in the response. You can find many examples of the similar code in Internet.

    You definitely can implement custom tile server in the web project. The absolute URI will depend on the location of the web application. But you can use the value of the HtmlPage.Document.DocumentUri property in your Silverlight application to create it from the URI of the Silverlight application.

    Regards,
    Andrey Murzov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  8. Arash
    Arash avatar
    22 posts
    Member since:
    Aug 2010

    Posted 29 Feb 2012 Link to this post

    Thank you very much
Back to Top
DevCraft banner