Change projection

3 posts, 0 answers
  1. Ioan
    Ioan avatar
    34 posts
    Member since:
    Dec 2012

    Posted 04 Nov 2014 Link to this post

    I made a custom map provider for Yandex maps, but it seems Yandex is using projection.wgs84Mercator.
    Pins on Bing and OpenStreet maps are positioned correctly but those on yandex are offseted.
    Does RadMap support Yandex's projection?
  2. Ioan
    Ioan avatar
    34 posts
    Member since:
    Dec 2012

    Posted 05 Nov 2014 in reply to Ioan Link to this post

    It seems RadMap doesn't support yandex projection projection.wgs84Mercator (EPSG:4326 ellipsoid). Can you please provide a starting point for creating my own projection?
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 07 Nov 2014 Link to this post

    Hello Loan,

    You can create custom map provider and override its SpatialRefence property which returns the projection.
    public class MyMapProvider : TiledProvider
    {
           /// <summary>
           /// Initializes a new instance of the MyMapProvider class.
           /// </summary>
           public MyMapProvider()
                 : base()
           {
                 MyMapSource source = new MyMapSource();
                 this.MapSources.Add(source.UniqueId, source);
           }
           /// <summary>
           /// Returns the SpatialReference for the map provider.
           /// </summary>
           public override ISpatialReference SpatialReference
           {
                 get
                 {
                        return new MercatorProjection();
                 }

    We hope you can also find useful the following threads:

    Custom Map Projection
    Offline map Servier ( Andrey's post from 26. October 2011 )
     
    Regards,
    Petar Mladenov
    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.

     
Back to Top