MVVM including tile & marker layers

3 posts, 0 answers
  1. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 18 Aug 2015 Link to this post

    Dear Telerik, 


    We need to implement maps on our page using MVVM including 'tile' and 'marker' layers, but we couldn't find any related documentation.
    The only example we found is this forum thread:
    that doesn't show how to implement needed layers.

    Could you please point me to the needed documentation or make an example where I can see it working, especially urlTemplate of the tile layer.



     Peter Beyer 


  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 20 Aug 2015 Link to this post

    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.

    Genady Sergeev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Peter Beyer
    Peter Beyer avatar
    27 posts
    Member since:
    Aug 2014

    Posted 03 Sep 2015 in reply to Genady Sergeev Link to this post

    Hi Genary,


    Thank you for your reply.
    It took us some time, but we managed to bind it manually.





    Peter Beyer


Back to Top