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

Rendering Polygon Map

1 Answer 85 Views
Map
This is a migrated thread and some comments may be shown as answers.
VS
Top achievements
Rank 1
VS asked on 10 Feb 2012, 06:32 AM
Hi,

I am doing some reasearch on RadMap. My requirement is to display plain shapes based on polygons.
I will have a collection of polygons,
Eg:- one of the polygon points are specified below.
[[22.713864306784661,63.274336283185839],[32.30088495575221,63.274336283185839],[32.30088495575221,76.6961651917404],[22.713864306784661,76.6961651917404]]

Is it possible to render shapes with polygon values using RadMap as in (http://demos.telerik.com/silverlight/#Map/Stadium).
I don't want to use any map files or images, but with just polygon values.

Thanks in advance.

S

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 15 Feb 2012, 08:58 AM
Hi Sujith,

There are different ways to show polygons using RadMap. First you should use the Information Layer to show them. You can find the documentation about it using the following link:
http://www.telerik.com/help/silverlight/radmap-features-information-layer.html
1. You can use the declarative way to add polygons or other map shapes to the map (http://www.telerik.com/help/silverlight/radmap-features-map-shapes.html)
2. You can use an MVVM pattern using the MapPolygon in the InformationLayer.ItemTemplate or using the InformationLayer.ItemTemplateSelector properties.
3. You can read polygons from KML-file, ESRI shape-file and from collections which have a property with geospatial data in WKT or in WKB format. Please take a look to the following documentation topics and the following examples:
http://www.telerik.com/help/silverlight/radmap-features-kml-data-import.html
http://www.telerik.com/help/silverlight/radmap-features-information-layer-shape-reder.html
http://www.telerik.com/help/silverlight/radmap-features-sql-geospatial-data.html
http://demos.telerik.com/silverlight/#Map/USA
http://demos.telerik.com/silverlight/#Map/Shapefile/World
http://demos.telerik.com/silverlight/#Map/WktReader

Greetings,
Andrey Murzov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Map
Asked by
VS
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or