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

Hide a Map Layer

3 Answers 57 Views
Map
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 26 Jun 2015, 08:09 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 30 Jun 2015, 03:57 PM
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!
 
0
Matt
Top achievements
Rank 1
answered on 02 Jul 2015, 07:15 PM
Thanks, that worked great.
0
Matt
Top achievements
Rank 1
answered on 02 Jul 2015, 07:15 PM
Thanks, that worked great.
Tags
Map
Asked by
Matt
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Matt
Top achievements
Rank 1
Share this question
or