This is a migrated thread and some comments may be shown as answers.

Tile Layer using Layer from Web Map Server (WMS)

1 Answer 170 Views
Map
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 08 Jul 2015, 06:59 PM

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

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 10 Jul 2015, 11:03 AM
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
Tags
Map
Asked by
Aaron
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or