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

Radmap is not seem in wpf

4 Answers 47 Views
Map
This is a migrated thread and some comments may be shown as answers.
eren
Top achievements
Rank 1
eren asked on 14 Aug 2018, 10:43 AM

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? 

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Aug 2018, 09:10 AM
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.
0
eren
Top achievements
Rank 1
answered on 16 Aug 2018, 06:08 AM

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.

0
Martin Ivanov
Telerik team
answered on 16 Aug 2018, 09:42 AM
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.
0
eren
Top achievements
Rank 1
answered on 16 Aug 2018, 11:06 AM

Hi Martin ,

The map is seem. Thank you so much.

Ragards.

Tags
Map
Asked by
eren
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
eren
Top achievements
Rank 1
Share this question
or