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
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:RadMapName="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
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