Radmap is not seem in wpf

5 posts, 0 answers
  1. eren
    eren avatar
    3 posts
    Member since:
    May 2015

    Posted 14 Aug 2018 Link to this post

    Hi,

    When running wpf application,readmap is not seem.I am  reading from .dbf and .shp.But there is not anything on screen. 

     

    <telerik:RadMap x:Name="radMap">
                        <telerik:RadMap.Provider>
                            <telerik:EmptyProvider/>
                        </telerik:RadMap.Provider>
                        <telerik:InformationLayer x:Name="informationLayer">
                            <telerik:InformationLayer.Reader>
                                <telerik:MapShapeReader DataSource="/Trial;component/Resources/world.dbf"
                                                Source="/Trial;component/Resources/world.shp">
                                    <telerik:MapShapeReader.ToolTipTemplate>
                                        <DataTemplate>
                                            <StackPanel Margin="10,5">
                                                <TextBlock FontWeight="Bold"
                                                   Text="{Binding Converter={StaticResource ExtendedDataConverter}, ConverterParameter='CNTRY_NAME'}" />
                                                <TextBlock Text="{Binding Converter={StaticResource ExtendedDataConverter}, ConverterParameter='SQKM', StringFormat='Area: {0:#,#.0} sq.km.'}" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </telerik:MapShapeReader.ToolTipTemplate>
                                </telerik:MapShapeReader>
                            </telerik:InformationLayer.Reader>
                        </telerik:InformationLayer>

     

    Why is not seem anything on screen? 

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2420 posts

    Posted 15 Aug 2018 Link to this post

    Hi Eren,

    Can you please check the Missing Controls in the UI article and let me know if this helps to resolve the issue on your side.

    Regards,
    Martin Ivanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. eren
    eren avatar
    3 posts
    Member since:
    May 2015

    Posted 16 Aug 2018 in reply to Martin Ivanov Link to this post

    Hi Martin,

    Thank you for you answer.I try this. I take an error. 

    Cannot locate resource 'themes/telerik.windows.controls.chartview.xaml'.

     Can not find chartview.dll in our telerik license?

    Thank you.

    Regards.

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2420 posts

    Posted 16 Aug 2018 Link to this post

    Hello Eren,

    The code snippet in the example is merely an example how to merge resources. In your case you don't need the chartview resource. To run the RadMap control in a NoXaml scenario you will need to merge the following resources:
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
    Note that you will also need to reference the corresponding theme dll. For the example above this is the Telerik.Windows.Themes.Office2016.dll.

    Regards,
    Martin Ivanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. eren
    eren avatar
    3 posts
    Member since:
    May 2015

    Posted 16 Aug 2018 Link to this post

    Hi Martin ,

    The map is seem. Thank you so much.

    Ragards.

Back to Top