Map control for offline OSM Tiles

2 posts, 0 answers
  1. Suresh
    Suresh avatar
    1 posts
    Member since:
    Dec 2014

    Posted 10 Mar 2015 Link to this post

    Hello all

    I have downloaded Open Street Maps Tile.

    I would like to know whether i can build  Asp.Net MVC 4 Web Application and i want to load OSM Tiles downloaded locally.

    The computer will not be connected to the Internet.

    Can you please let us know on how to  implement  map control and load tiles from locally downloaded folder.

    I would also like to know if i can trigger markers on particular lat and Long

    Thanks
    Suresh


  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 12 Mar 2015 Link to this post

    Hi,

    The map shouldn't have any issues with local tiles, as long as they follow the same URL convention.
    You can configure the tile layer as:
    layers: [{
      type: "tile",
      urlTemplate: "http://my.tile.server/#= zoom #/#= x #/#= y #.png",
    }]

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top