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

hide zoom level choices

3 Answers 70 Views
Map
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 24 Aug 2010, 10:47 PM
How do you hide Region, City and Neighbord in the zool level control declaratively using xaml.  If not, how do you do it programmatically in c#? 

Thanks

Chris R.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 26 Aug 2010, 08:43 AM
Hello Christopher,

You can use the ZoomBarPresetsVisibility property to hide zoom level preset buttons.
The sample XAML code is the following:
<telerik:RadMap Name="radMap"
                ZoomBarPresetsVisibility="Collapsed">
</telerik:RadMap>

Greetings,
Andrey Murzov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Christopher
Top achievements
Rank 1
answered on 26 Aug 2010, 03:27 PM
I would like to hide only a few of the buttons instead of them all.  Is there a way to hide City and Neighborhood?
0
Andrey
Telerik team
answered on 27 Aug 2010, 05:54 PM
Hi Christopher,

As a workaround you can create new custom class that inherits from the MapZoomBar class. Then you can override the OnApplyTemplate method in order to remove unneeded buttons from template.
I have attached a sample solution that uses custom zoom bar with removing Neighborhood and City level buttons.


All the best,
Andrey Murzov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
Christopher
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or