Tile Layer using Layer from Web Map Server (WMS)

2 posts, 0 answers
  1. Aaron
    Aaron avatar
    3 posts
    Member since:
    May 2015

    Posted 08 Jul 2015 Link to this post

    Hello,

    Is it possible to format the urlTemplate in such a way that we can connect a layer of type Tile to a Web Mapping Server?

    The problem seems to be fulfilling the BBOX parameter that the WMS Standard expects.

    If not, could you please suggest a suitable work-around one can implement to get the Layers from a WMS integrated?

    Regards,

    Aaron

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 10 Jul 2015 Link to this post

    Hello,

    The Map component does not currently support integration with WMS.

    Please, file a request for this feature on our UserVoice portal if you have minute.
    This will help us gauge the overall interest and prioritize.

    That said, the urlTemplate can be a function. This allows obtaining the current map extent at the time of the request.
        urlTemplate: function(data) {
          var extent = $("#map").data("kendoMap").extent();

          // ...
          console.log(extent);

          return kendo.format("http://{0}.tile.openstreetmap.org/{1}/{2}/{3}.png",
            data.subdomain, data.zoom, data.x, data.y
          );
        }
     
    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top