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

RadMap shapefile

1 Answer 90 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Karina
Top achievements
Rank 1
Karina asked on 25 Nov 2014, 07:59 PM
After using the demo shapefiles world_continents, I ventured on using my own in my project. When I added my shapefiles the image rendered is completely different from the original. Do you know why this might be happening?    

Code:

        <telerikMap:RadMap Background="transparent">
            <telerikMap:RadMap.Layers>
                <telerikMap:MapShapeLayer ShapeLabelAttributeName="ADMIN_NAME" IsSelectionEnabled="True">
                    <telerikMap:MapShapeLayer.Source>
                        <telerikMap:ShapefileDataSource SourceUriString="ms-appx:///Assets/MapFiles/b.shp"  DataSourceUriString="ms-appx:///Assets/MapFiles/b.dbf"/>
                    </telerikMap:MapShapeLayer.Source>
                </telerikMap:MapShapeLayer>
            </telerikMap:RadMap.Layers>
            <telerikMap:RadMap.Behaviors>
                <telerikMap:MapPanAndZoomBehavior ZoomMode="ZoomToCenter" DoubleTapAction="Reset"/>
            </telerikMap:RadMap.Behaviors>
        </telerikMap:RadMap>

P.S. both shapefiles are using Mercator projection and are in 2D

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 28 Nov 2014, 08:47 AM
Hello Karina,

Thank you for contacting us.

It seems that your shapefile uses Spherical Mercator projection which describes its coordinates in meters while our RadMap supports Mercator Degrees coordinate system. In such you can use a converter to translate the coordinates. 


Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Map
Asked by
Karina
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or