This project is read-only.

Location Finding in DeepEarth

Sep 12, 2008 at 11:01 AM
Edited Sep 12, 2008 at 11:06 AM
hi ,

 We are using DeepEarth in our project development. As a part of our Project we need a search box in which the client can search for places in map and the map should navigate to the corresponding place in the map.

Can any one help me how to find location in DeepEarth. I have got source code for finding a place in virual earth..but i need it to be done in DeepEarth.
Help me by giving the idea to implement.


Sep 12, 2008 at 11:14 AM
you properly need to make a "Web Service" or "WCF Service" in your web application that is hosting the sliverlight project for DeepEarth

then you will need to call a method from the "Service" and pass in the search term... e.g. "New York" or "London" what ever the user wants to find...

then your web service need to go find the LON & LAT for the place and send it back to you silverlight deepearth project and then

you use the "map.SetView(...)" method

look at this post for that
Sep 12, 2008 at 11:54 AM

Thanks dotnetnoobie.

But how its possible to get lan and lon for all the places in map? any idea?
Sep 12, 2008 at 12:56 PM 

you can get all kinds Geo Data there, and even download a database if you want

there is also a javascript webservice with sample code there so you could do it from the page hosting the Silverlight application and save a tip back to you webserver if you did not want to use a WCF or Web Service
Sep 15, 2008 at 1:29 PM
hi dotnetnoobie,

i have used (map.setview ) method for locating the places in map.It works only first time. when another city is given in the search textbox it locates to someother place.if the same city is given for the first time when the page loads the function locates the place correctly.... can you plz give solution for this problem.
Sep 16, 2008 at 7:16 AM

look at that post, set

UseSprings = false;
will fix your issue... i think...

there is a bug right now, the guys making this project are going to release new source code soon and this bug might be fixed then they said...
they made a post a few days ago about it...
Sep 16, 2008 at 7:23 AM

this is the post from the guy making the project, it is second from the bottom, "SoulSolutions"