how to hide birds view option in map

4 posts, 0 answers
  1. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 01 Apr 2010 Link to this post

    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
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 02 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 02 Apr 2010 Link to this post

    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.
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Apr 2010 Link to this post

    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.
Back to Top