Hello Peter,
Kendo MVVM do not have exposed bindings that map layers/tiles to a view model therefore you have to set them in a way similar to the one described in the forum post. e.g. data-layers=" /* layers declaration */".
However, if you have a requirement to use pure MVVM you may want to create custom binding for layers/tiles. More details about custom bindings can be found in the
create custom bindings help article.
Alternatively, it might be more straightforward to initialize the map the standard way and return the templates url using a function.
Regards,
Genady Sergeev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework -
download Kendo UI now!