Disable map view mode in code

3 posts, 0 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 25 Jun 2015 Link to this post

    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. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 30 Jun 2015 Link to this post

    This can be achieved by using the MapProvider commands.

    f.i.:

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

     

  3. DevCraft banner
  4. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 30 Jun 2015 Link to this post

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