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

PushPins on given address

3 Answers 100 Views
Map
This is a migrated thread and some comments may be shown as answers.
Arvind Dhasmana
Top achievements
Rank 1
Arvind Dhasmana asked on 29 Apr 2010, 01:31 PM
Hi
Requirement

I am using Telerik Map Cotrol . My Requirement is i have some given address and i want to plot point against them on Map.
And on hovering over that point i want to fetch some data from DataBase.

Questions :
1) Now is there any way to to this without kml file.
2) The points can be of different color depends on the data.
3) I want to do this by address not by latitude and longitude as i have to plot 1000 of points on Map so is it possible to do by Address.
4) Can i give my points some shape.

I have read about MapPinPoint, PushPIns which should i use that can fill my requirement.

Please reply soon.

Regards
Charu Pahuja

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Apr 2010, 02:44 PM

Hi Arvind,

It is possible to have 1000 elements on the map, but if they are displayed at the same time, then the rendering performance could be insufficient. We could propose using the dynamic layer feature to loading points by zoom level and region.
Please see the Using Dynamic Layer topic of our documentation and the Items Virtualization example.
http://www.telerik.com/help/silverlight/map-using-dynamic-layer.html
http://demos.telerik.com/silverlight/#Map/DynamicLayer
The example uses different styles (colors) for items depending on the data (question #2). It uses the ContentControl element with different Control Templates. So, you can use any shapes inside the template (question #4).

The example uses WCF service to retrieve items that are displayed on the map. You can look at source code of service on your PC using the following path:
C:\Program Files\Telerik\RadControls for Silverlight Q1 2010\Demos\ExamplesWeb\RadMapDataService.svc.cs
You don't need to use kml. You can create a WCF service that will retrieve the necessary data from your DataBase (question #1).

About question #3 - I think if you use geocode service for each item when you retrieve your data, this process can take a lot of time. We tried to use geocode service this manner, but it took about 1 second per each request. I think it would be better to perform geocoding and add lat-lon location to your data table when the item is saved to your DataBase.

Sincerely yours,
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
Arvind Dhasmana
Top achievements
Rank 1
answered on 10 May 2010, 09:28 AM
Hi

But i am stuck here as
We get different latitude and longitude according to our zoom level in the map.
and by using Geocoding we will get one latitude and one longitude .

So can i save in my DB one latitude and one longitude for a location.????

Plesae reply ASAP.

Regards
Charu Pahuja
0
Andrey
Telerik team
answered on 11 May 2010, 02:13 PM
Hi Charu,

I'm sorry, I don't quite understand what you mean when talking about different latitude and longitude according to the zoom level.
Every geographical point has one latitude and one longitude. The geographic wide object (like city or building) can have multiple locations which describe its shape or border. The Geocoding service can return one or multiple locations for a geographical object.
It is up to you what you will store in your database.

Sincerely yours,
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.
Tags
Map
Asked by
Arvind Dhasmana
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Arvind Dhasmana
Top achievements
Rank 1
Share this question
or