Plotting points in a Dynamic Layer from SQL Database

2 posts, 0 answers
  1. LORA
    LORA avatar
    1 posts
    Member since:
    Jul 2010

    Posted 01 Sep 2010 Link to this post

    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?
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 03 Sep 2010 Link to this post

    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
  3. DevCraft banner
Back to Top