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

Map providers

21 Answers 531 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.
aviad dror
Top achievements
Rank 1
aviad dror asked on 12 Jan 2010, 07:38 AM
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

21 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 13 Jan 2010, 04:17 PM
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.
0
Carlos Hass
Top achievements
Rank 1
answered on 24 Feb 2010, 07:03 PM
Hi,

RadMap will support Google Maps on Q1 2010 ?

Have plans about supporting it ?

Tks,
Carlos Hass
0
Andrey
Telerik team
answered on 26 Feb 2010, 09:39 AM
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.
0
AngeIa AngeIa
Top achievements
Rank 1
answered on 04 Mar 2010, 01:17 PM
Вы говорили, что мы, как пользователи, сами можем добавлять  провайдеры различных производителей. Напишите пример как это можно сделать? Хотелось бы конечно, чтобы в качестве примера был использован 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.
0
Andrey
Telerik team
answered on 09 Mar 2010, 10:09 AM
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.
0
AngeIa AngeIa
Top achievements
Rank 1
answered on 16 Mar 2010, 09:57 AM
Добрый день.
Благодаря вашему примеру получилось составить несколько дополнительных провайдеров на разные картографические сервисы. Но вот один провайдер работает некорректно. Как я понял это из-за того, что у него проекция не Меркатор. Можете выслать еще и пример создания своей проекции?
Заранее благодарю.

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.

0
aviad dror
Top achievements
Rank 1
answered on 16 Mar 2010, 12:17 PM
Hi

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

Thanks,

Aviad
0
Ves
Telerik team
answered on 18 Mar 2010, 09:15 AM
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.
0
AngeIa AngeIa
Top achievements
Rank 1
answered on 18 Mar 2010, 09:25 AM
Боюсь, что вы ответили на вопрос человека, который мне кажется написал немножко не по обсуждаемой теме. Мне бы хотелось все-таки получить ответ на вопрос поставленный мной выше: как можно поменять проекцию в провайдере?

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?
0
Andrey
Telerik team
answered on 18 Mar 2010, 10:50 AM
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.
0
AngeIa AngeIa
Top achievements
Rank 1
answered on 18 Mar 2010, 11:00 AM
Спасибо, буду разбираться.

Thank you.
0
Rabeeh
Top achievements
Rank 2
answered on 16 Sep 2010, 10:55 AM
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 
0
Andrey
Telerik team
answered on 20 Sep 2010, 04:43 PM
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
0
Chris
Top achievements
Rank 2
answered on 21 Sep 2010, 07:44 PM
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
0
Andrey
Telerik team
answered on 23 Sep 2010, 05:03 PM
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
0
Lanzo
Top achievements
Rank 1
answered on 31 May 2011, 08:46 AM
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



0
Andrey
Telerik team
answered on 02 Jun 2011, 08:23 AM
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
0
Grzegorz
Top achievements
Rank 1
answered on 07 Feb 2012, 04:27 PM
How can i convert from tileLevel, tilePositionX, tilePositionY to point of tile corner in mercatorprojection?
0
Andrey
Telerik team
answered on 10 Feb 2012, 10:39 AM
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 >>
0
Gts
Top achievements
Rank 1
answered on 22 Feb 2012, 05:28 PM
Hi.
Have you example to create google maps or yandex map tile provider?
0
Andrey
Telerik team
answered on 24 Feb 2012, 02:31 PM
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 >>
Tags
Map
Asked by
aviad dror
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Carlos Hass
Top achievements
Rank 1
AngeIa AngeIa
Top achievements
Rank 1
aviad dror
Top achievements
Rank 1
Ves
Telerik team
Rabeeh
Top achievements
Rank 2
Chris
Top achievements
Rank 2
Lanzo
Top achievements
Rank 1
Grzegorz
Top achievements
Rank 1
Gts
Top achievements
Rank 1
Share this question
or