Map providers

22 posts, 0 answers
  1. aviad dror
    aviad dror avatar
    2 posts
    Member since:
    Jun 2009

    Posted 12 Jan 2010 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Carlos Hass
    Carlos Hass avatar
    2 posts
    Member since:
    Feb 2010

    Posted 24 Feb 2010 Link to this post

    Hi,

    RadMap will support Google Maps on Q1 2010 ?

    Have plans about supporting it ?

    Tks,
    Carlos Hass
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Feb 2010 Link to this post

    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.
  6. AngeIa AngeIa
    AngeIa AngeIa avatar
    15 posts
    Member since:
    Dec 2009

    Posted 04 Mar 2010 Link to this post

    Вы говорили, что мы, как пользователи, сами можем добавлять  провайдеры различных производителей. Напишите пример как это можно сделать? Хотелось бы конечно, чтобы в качестве примера был использован 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.
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 09 Mar 2010 Link to this post

    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.
  8. AngeIa AngeIa
    AngeIa AngeIa avatar
    15 posts
    Member since:
    Dec 2009

    Posted 16 Mar 2010 Link to this post

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

    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.

  9. aviad dror
    aviad dror avatar
    2 posts
    Member since:
    Jun 2009

    Posted 16 Mar 2010 Link to this post

    Hi

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

    Thanks,

    Aviad
  10. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Mar 2010 Link to this post

    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.
  11. AngeIa AngeIa
    AngeIa AngeIa avatar
    15 posts
    Member since:
    Dec 2009

    Posted 18 Mar 2010 Link to this post

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

    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?
  12. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 18 Mar 2010 Link to this post

    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.
  13. AngeIa AngeIa
    AngeIa AngeIa avatar
    15 posts
    Member since:
    Dec 2009

    Posted 18 Mar 2010 Link to this post

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

    Thank you.
  14. Rabeeh
    Rabeeh  avatar
    62 posts
    Member since:
    Sep 2007

    Posted 16 Sep 2010 Link to this post

    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 
  15. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 20 Sep 2010 Link to this post

    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
  16. Chris
    Chris avatar
    23 posts
    Member since:
    Nov 2003

    Posted 21 Sep 2010 Link to this post

    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
  17. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Sep 2010 Link to this post

    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
  18. Lanzo
    Lanzo avatar
    1 posts
    Member since:
    Sep 2006

    Posted 31 May 2011 Link to this post

    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



  19. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Jun 2011 Link to this post

    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
  20. Grzegorz
    Grzegorz avatar
    3 posts
    Member since:
    Mar 2011

    Posted 07 Feb 2012 Link to this post

    How can i convert from tileLevel, tilePositionX, tilePositionY to point of tile corner in mercatorprojection?
  21. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
  22. Gts
    Gts avatar
    17 posts
    Member since:
    Jul 2012

    Posted 22 Feb 2012 Link to this post

    Hi.
    Have you example to create google maps or yandex map tile provider?
  23. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 24 Feb 2012 Link to this post

    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 >>
Back to Top
DevCraft banner