MapShape.Shape is internal.

3 posts, 0 answers
  1. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 24 Nov 2009 Link to this post

    Hi,

    I am trying to make my own MapLayer derived class (bypassing InformationLayer and DynamicLayer) and I would like to use the MapShapes in the toolkit.  Unfortunately I can't access the MapShape.Shape property because it is internal which makes it difficult to work with.  Ideally it should be at least public readonly.

    Cheers,
    Clint
  2. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 24 Nov 2009 Link to this post

    I also noticed that MapControl is a internal property on the MapShape control but I am not sure why that is nor what is used for.

    It appears that these methods are necessary for custom layers to resolve what they are trying to arrange.

    Cheers,
    Clint
  3. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Nov 2009 Link to this post

    Hi Clint Singer,

    Unfortunately you can't use MapShapes OUTSIDE the InformationLayer. If you'd like use them in your own layer then you MUST inherit from InformationLayer. MapShapes are configured by the InformationLayer.

    The MapControl property is used for internal calculation purposes. It is set by the InformationLayer.

    I am afraid we do not plan to expose MapShape.Shape property publicly, because it would caused a lot of misunderstanding and problems.

    Sincerely,
    Andre Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top