This is a migrated thread and some comments may be shown as answers.
MapPolylines and Linestrings
1 Answer 31 Views
Map
This is a migrated thread and some comments may be shown as answers.
Kiran Nair
Top achievements
Rank 1
Kiran Nair asked on 07 Sep 2011, 06:26 AM

Hey guys,

I'm currently populating a SqlGeospatialDataReader with a series of Linestrings from my SQL 2008 database. Everything is rendering as expected. Per our design requirements, my users need to interact with the lines using mouseclick and mouseover events.

I read through this post and found it very helpful...
http://www.telerik.com/community/forums/silverlight/map/mappolyline-with-selecteable-segments.aspx

However, I have thousands of geography type linestrings (e.g. Linestring (-97.52087 27.84346, -97.51234 27.84047, -97.49072 27.82658)), rather than individual points.

Is there an effecient way to use my existing linestring data, or do I need to parse the linestring points in C# or via SQL point functions etc?

Thanks in advance!

-Steven

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 12 Sep 2011, 04:58 PM
Hello Steven,
 
You can handle the "ReadCompleted" event of the shape reader and iterate through all the items in the InformationLayer. Once you have access to those items you can set up mouse events and perform your interaction there. For more info you can check this example: http://demos.telerik.com/silverlight/#Map/WktReader

Best wishes,
Vladimir Milev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Kiran Nair
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or