See the NominatimGeocoder API doc to determine the details of the returned results and the accepted query string parameters. An example of doing this is in LayerManager.js. These coordinates can be passed to a GoToAnimator to move the navigator smoothly to that geographic position. Two important properties of each result are its lat and lon properties, which identify the latitude and longitude of the place. More than one place may be identified each is represented by an element in the return array. The results are parsed JSON and contain a wealth of information about the places found that match the query string. The arguments to the callback function are, in order, a reference to geocoder and an array of query results. The callback function is called when the service replies. The query string is sent to the geocoder service. The arguments to this function are a query string and a callback function. The NominatimGeocoder has one function, lookup. Ask Question Asked 5 years, 4 months ago. An example of its usage is in LayerManager.js. NASA world wind map - open navigation URL new window after clicking on custom Placemark. Web WorldWind provides the NominatimGeocoder that uses Open Street Map’s Nominatim geocoder at MapQuest. Geocoders convert query strings identifying places to geographic locations and other useful information. You can change the time it takes to perform the animation via the travelTime property. Use a Position if you want the end position to have a different altitude than the start position. Use a Location if you want the start and end positions to have the same altitude. To use this class you pass its goTo function either a Location or a Position. You can see example usage in LayerManager.js. To change the navigator smoothly, use the GoToAnimator class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |