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

how to hide birds view option in map

3 Answers 74 Views
Map
This is a migrated thread and some comments may be shown as answers.
ewart
Top achievements
Rank 1
ewart asked on 01 Apr 2010, 09:56 AM
what is the best way of specifiying which modes the user is allow to use?  my understanding of the licensing is the birds view mode costs extra $$$ and so I can't show it anyway in my situation, so I'd like to disable it.  I could have sworn I saw how to do this in the documentation somewhere but I don't think it's possible via properties?

regards
ewart

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 02 Apr 2010, 11:25 AM
Hello ewart,

You can use the RadMap.AllowedCommands property yo achieve the desired effect like this:

RadMap1.AllowedCommands = "Aerial,Road,IsLabelVisible";

This property specifies coma-separated list of the UI commands are allowed. The following commands are currently supported:
  • Road
  • Aerial
  • Birdseye
  • IsLabelVisible.
Null pointer or empty string indicates that all commands are allowed. "None" indicates that all commands are disabled.


Best wishes,
Freddie
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
ewart
Top achievements
Rank 1
answered on 03 Apr 2010, 12:42 AM
Perfect, I knew I had seen it somewhere, perhaps in a code sample.  Anyway, a note for others - I first applied this an wondered why it made no affect then realised I had used defaultlayout false on my radmap which means this setting has no effect..    maybe some binding updating coiuld fix that.. anyway, if it doesn't work for you then make sure you set it on the individual components :)

cheers
ewart.
0
Andrey
Telerik team
answered on 06 Apr 2010, 10:21 AM
Hello Ewart,

If you set default layout to false, then you, probably use separate instance of the MapCommandBar to show map commands. In this case you can use MapCommandBar property with the same name AllowedCommands to limit commands allowed.

Kind regards,
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
ewart
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
ewart
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or