This is a migrated thread and some comments may be shown as answers.
Disable map view mode in code
2 Answers 3 Views
Map
This is a migrated thread and some comments may be shown as answers.
Gilbert van Veen
Top achievements
Rank 1
Gilbert van Veen asked on 25 Jun 2015, 01:20 PM

Hi,

Is it possible to disable the map view modes in code behind?

In some scenarios I don't want to allow the user to change the view mode.

Or even better an option to decide per view mode if it is allowed or not.

I use the OpenStreetMapProvider.

Thanks om advance.

 

 

2 Answers, 1 is accepted

Sort by
0
Gilbert van Veen
Top achievements
Rank 1
answered on 30 Jun 2015, 07:30 AM

This can be achieved by using the MapProvider commands.

f.i.:

this.MyOpenStreetMapProvider.Commands[0].IsAllowed = false;

 

0
Martin Ivanov
Telerik team
answered on 30 Jun 2015, 11:37 AM
Hello Gilbert,

I am glad to hear that you find a solution for disabling the view modes of the diagram. In addition you can take a look at the Implement custom commands for MapCommandBar UI help article.

Regards,
Martin
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Map
Asked by
Gilbert van Veen
Top achievements
Rank 1
Answers by
Gilbert van Veen
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or