Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Map providers

Not answered Map providers

Feed from this thread
  • aviad dror avatar

    Posted on Jan 12, 2010 (permalink)

    Hi

    We're about to add a map control to our application. Usually our GIS / Maps providers are "PTV" and "Envinsa" for Geocoding, Routing and Mapping services..
    Does your map control works with those providers? Where should I start?

    Thanks,

    Aviad

    Reply

  • Andrey Andrey admin's avatar

    Posted on Jan 13, 2010 (permalink)

    Hi Aviad,

    We're sorry, but currently our map control does not have built-in support of these providers. Unfortunately, that is not in our plans for Q1 2010 also.
    But map control API supports creating of custom map providers. So, you can create your own map provider to displaying map data from a map service you prefer.

    All the best,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Carlos Hass avatar

    Posted on Feb 24, 2010 (permalink)

    Hi,

    RadMap will support Google Maps on Q1 2010 ?

    Have plans about supporting it ?

    Tks,
    Carlos Hass

    Reply

  • Andrey Andrey admin's avatar

    Posted on Feb 26, 2010 (permalink)

    Hi Carlos,

    There are no technical problems to have built-in google map provider for our control, but there are licensing problems for using google map data without google API, so we do not plan to release google map provider.

    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.

    Reply

  • Posted on Mar 4, 2010 (permalink)

    Вы говорили, что мы, как пользователи, сами можем добавлять  провайдеры различных производителей. Напишите пример как это можно сделать? Хотелось бы конечно, чтобы в качестве примера был использован GoogleMaps, но можно и других провайдеров. Заранее благодарю.

    You said that we as users, we can add providers of various manufacturers. Write an example as it can be made? It would be desirable certainly that as an example has been used GoogleMaps, but it is possible also other providers. In advance I thank.

    Reply

  • Andrey Andrey admin's avatar

    Posted on Mar 9, 2010 (permalink)

    Hello AngeIa,

    Yes, the RadMap control API supports creating of custom map providers. I've attached the sample custom provider application for OpenStreetMap.

    Да, RadMap API поддерживает создание собственных провайдеров. Я вложил пример с провайдером для OpenStreetMap.

    Best wishes,
    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.

    Reply

  • Posted on Mar 16, 2010 (permalink)

    Добрый день.
    Благодаря вашему примеру получилось составить несколько дополнительных провайдеров на разные картографические сервисы. Но вот один провайдер работает некорректно. Как я понял это из-за того, что у него проекция не Меркатор. Можете выслать еще и пример создания своей проекции?
    Заранее благодарю.

    Good day.
    Through your example, turned up several additional providers at different mapping services. But the one provider does not work correctly. As I understand it is due to the fact that he is not Mercator projection. You can also send an example of creating its projection?
    Thank you in advance.

    Reply

  • aviad dror avatar

    Posted on Mar 16, 2010 (permalink)

    Hi

    Can I get a sample of right click even from RadMap control?

    Thanks,

    Aviad

    Reply

  • Ves Ves admin's avatar

    Posted on Mar 18, 2010 (permalink)

    Hello Aviad,

    You can attach the event like this (Telerik.Windows.Controls.Input reference needed):

    Copy Code
    Telerik.Windows.Input.Mouse.AddMouseUpHandler(this.RadMap1, new EventHandler<Telerik.Windows.Input.MouseButtonEventArgs>(OnMouseUp));

    and handle it like this:

    Copy Code
    private void OnMouseUp(object sender, Telerik.Windows.Input.MouseButtonEventArgs e)
            {
                if (e.ChangedButton == Telerik.Windows.Input.MouseButton.Right)
                {
                    // Hide the standard SL menu
                    e.Handled = true;
     
                    // Code goes here
                    MessageBox.Show("Right click");
                }
            }


    Best regards,
    Ves
    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.

    Reply

  • Posted on Mar 18, 2010 (permalink)

    Боюсь, что вы ответили на вопрос человека, который мне кажется написал немножко не по обсуждаемой теме. Мне бы хотелось все-таки получить ответ на вопрос поставленный мной выше: как можно поменять проекцию в провайдере?

    I'm afraid that you have answered the question the person who wrote it seems to me a bit off on this question. I would like to still get the answer to the question I posed above: How can I change the projection to the provider?

    Reply

  • Andrey Andrey admin's avatar

    Posted on Mar 18, 2010 (permalink)

    Hi AngeIa,

    You can override the SpatialReference property in your custom provider for changing its projection.
    See the following code of the CustomOpenStreetMapProvider I sent:
    public override ISpatialReference SpatialReference
    {
        get
        {
            return new MercatorProjection();
        }
    }
    The projection class should implement the ISpatialReference interface.
    It can be inherited from the SpatialReference class with specifying projection properties in its constructor. The GeographicToLogical and the LogicalToGeographic methods also could be overridden if it is necessary for a projection. These methods convert a geographical coordinate (Longitude, Latitude) to a logical Point (0->1) and vice versa.

    Для изменения проекции вы можете переопределить свойство SpatialReference в вашем custom provider. Обратите внимание на вышеприведенный код из CustomOpenStreetMapProvider.

    Класс проекции должен реализовывать интерфейс ISpatialReference. Он может быть сделан как наследуемый от класса SpatialReference с определением значений свойств проекции в конструкторе класса. Так же если это необходимо могут быть переопределены методы GeographicToLogical и LogicalToGeographic. Эти методы служат для конвертирования географических координат(Longitude, Latitude)  в логические (0->1) и наоборот.

    Kind regards,
    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.

    Reply

  • Posted on Mar 18, 2010 (permalink)

    Спасибо, буду разбираться.

    Thank you.

    Reply

  • Posted on Sep 16, 2010 (permalink)

    What is the sequence required to, create custom provider & service to view shape files using RADMap control..

    what should we do, to allow this, a quick note, or direction, would be very helpful...

    Thank you in advanced 

    Reply

  • Andrey Andrey admin's avatar

    Posted on Sep 20, 2010 (permalink)

    Hi Rabeeh ,

    Custom map providers can't be used to show ESRI shape files. Map providers are designed to show map tiles. 

    Regards,
    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

    Reply

  • Posted on Sep 21, 2010 (permalink)

    I know this is probably not the best place to ask this question, but I am using the RadMap (or want to) to provide access to custom maps. Looking at the sample provided for OpenStreetMapProvider (CustomOpenStreetMapProvider.cs) makes me feel like it would not be too difficult (I know famous last words) to create my own maps then provide them to be consumed by RadMap.  Okay, finally to the question, what resources are there that I can read up on to learn how to be a map provider?  I know it's based on tiles of the map etc., but I feel like there are a lot of gaps I need to fill before I can even decide to go down that path.  Any help or direction would be very helpful and much appropriated!

    Thank you,
    Chris

    Reply

  • Andrey Andrey admin's avatar

    Posted on Sep 23, 2010 (permalink)

    Hello Chris,

    I would recommend you to take a look to the Bing Maps Tile System article.
    http://msdn.microsoft.com/en-us/library/bb259689.aspx

    Greetings,
    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

    Reply

  • Lanzo avatar

    Posted on May 31, 2011 (permalink)

    Hello,

    We have a map control in our application. In this control our GIS / Maps providers are "PTV" and "Bing" for Geocoding, Routing and Mapping services..

    I saw that in the new Map control we can use a custom provider. Does anyone have experience with PTV and this control and who can send me example code to use PTV as map provider?


    Best regards,
    Lanzo van Slooten



    Reply

  • Andrey Andrey admin's avatar

    Posted on Jun 2, 2011 (permalink)

    Hi Lanzo,

    Unfortunately we have not any experience with PTV map services.

    Regards,
    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

    Reply

  • Grzegorz avatar

    Posted on Feb 7, 2012 (permalink)

    How can i convert from tileLevel, tilePositionX, tilePositionY to point of tile corner in mercatorprojection?

    Reply

  • Andrey Andrey admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello Grzegorz,

    You can use the following code to calculate bounding box from tileLevel, tilePositionX, and tilePositionY:

    int zoom = ConvertTileToZoomLevel(tileLevel);
     
    double pixelWidth = (double)this.TileWidth * Math.Pow(2, zoom);
    double west = ((double)(x * this.TileWidth) * 360.0 / pixelWidth) - 180.0d;
     
    double aspect = Math.Exp((0.5 - ((y * this.TileHeight) / this.TileWidth / Math.Pow(2, zoom))) * 4.0 * Math.PI);
    double north = (double)Math.Asin((aspect - 1) / (aspect + 1)) * 180.0 / Math.PI;
     
    double east = ((double)((x + 1) * this.TileWidth) * 360.0 / pixelWidth) - 180.0;
     
    aspect = Math.Exp((0.5 - (((y + 1) * this.TileHeight) / this.TileWidth / Math.Pow(2, zoom))) * 4.0 * Math.PI);
    double south = (double)Math.Asin((aspect - 1) / (aspect + 1)) * 180.0 / Math.PI;


    All the best,
    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 >>

    Reply

  • Gts avatar

    Posted on Feb 22, 2012 (permalink)

    Hi.
    Have you example to create google maps or yandex map tile provider?

    Reply

  • Andrey Andrey admin's avatar

    Posted on Feb 24, 2012 (permalink)

    Hello,

    Unfortunately RadMap control does not support officially even custom implementations of the Google map providers, because it would violate Google map API license policies. You cannot use Google map JavaScript API from the Silverlight application directly. Access or use the Google maps tile server through any technology or means other than those is prohibited (http://code.google.com/intl/en-EN/apis/maps/terms.html paragraph 10.1). The same is true for the yandex tiles.

    Kind regards,
    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Map > Map providers