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

Plotting points in a Dynamic Layer from SQL Database

1 Answer 113 Views
Map
This is a migrated thread and some comments may be shown as answers.
LORA
Top achievements
Rank 1
LORA asked on 01 Sep 2010, 08:56 PM
I am just getting strted with Silverlight and RadMap. Looks exciting.

I have 4 regions in the US; Northeast, Southeast, Central and West. Within each of these I will have a few thousand points of interest. Each point of interest has some attributes that I would like to display in a dynamic layer.

My "Points" SQL Table looks like the following:

Map_Region    varchar(25)
Map_Point_ID    int
Map_Point_Desc    varchar(50)
Map_Status    int
Map_Longitude decimal
Map_Latitude decimal

How can I use this table as an automatic input for mapping locations and displaying the Status, Point_ID and Point_Desc on the icon?

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 03 Sep 2010, 12:41 PM
Hi LORA,

You can use LINQ to query and retrieve data from SQL table that our Silverlight Application can use. The following link contains an article with details instruction:
http://www.silverlight.net/learn/tutorials/sqldatagrid-cs/

Also I would recommend you to take a look to the following RadMap control examples:
1. Items Virtualization example (http://demos.telerik.com/silverlight/#Map/DynamicLayer). The Using Dynamic Layer help topic of our documentation you can use also -- http://www.telerik.com/help/silverlight/map-using-dynamic-layer.html.

2. DataBinding example (http://demos.telerik.com/silverlight/#Map/DataBinding). It demonstrates using of ItemsSource property for information layer. The data binding help topic you can use also -- http://www.telerik.com/help/silverlight/map-data-binding.html.

All the best,
Andrey Murzov
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Map
Asked by
LORA
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or