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

MapLine within different UserControl

1 Answer 18 Views
Map
This is a migrated thread and some comments may be shown as answers.
Alexis
Top achievements
Rank 1
Alexis asked on 18 Jun 2014, 07:11 PM
Hi,

I was wondering if it were possible to place MapLine controls into a different UserControl.
In other words, I want to separate the radMap control from the MapLine controls by using a UserControl.
So I would have a parent containing the map and a child containing the lines:

ParentUserControl
<InformationLayer>
<Views:
ChildUserControl/>
<InformationLayer/>


ChildUserControl
<MapLine Point="0,0" Point2="10,10"/>

Unfortunately, it doesn't seem to work at all... Any ideas what might be the best solution?

Thank you,
Alexis

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 19 Jun 2014, 11:09 AM
Hello Alexis,

Unfortunately, map shape objects can't be used within user control or be encapsulated into any other control because of the nature of these object. The map shape objects are quite specific and must be added into the information layer directly.

Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Map
Asked by
Alexis
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or