Hide a Map Layer

4 posts, 1 answers
  1. Matt
    Matt avatar
    38 posts
    Member since:
    Nov 2014

    Posted 26 Jun 2015 Link to this post

    I'm using the same dataSource for a kendo grid as I am for a layer on my map.  In some situations I don't want to show anything from that layer on the map, but I still need to display them on the grid so I can't just clear the dataSource.  Is there a way to hide a map layer?
  2. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 30 Jun 2015 Link to this post

    Hi,

    Individual map layer can be hidden by index. For example:
    $("#map").data("kendoMap").layers[1].hide();

    There's a corresponding show method as well.
    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Matt
    Matt avatar
    38 posts
    Member since:
    Nov 2014

    Posted 02 Jul 2015 in reply to T. Tsonev Link to this post

    Thanks, that worked great.
  5. Matt
    Matt avatar
    38 posts
    Member since:
    Nov 2014

    Posted 02 Jul 2015 in reply to T. Tsonev Link to this post

    Thanks, that worked great.
Back to Top
Kendo UI is VS 2017 Ready