Q: Which navigator object property returns a geolocation object?
Solution: There are many navigator object properties, geolocation returns a geolocation object that can be used to locate user’s position, appVersion returns the version information of the browser, appCodeName returns the code name of the browser.
Q: What returns the engine name of the browser?
Solution: Product property returns the engine name of the browser, userAgent returns user-agent header sent by the browser to the server, platform returns for which platform the browser is compiled. OnLine determines whether the browser is online or not.
Q: Action box does not contains _______
Solution: The action box contains tabs, a geolocation button, geoloaction options and search box, by the use of tabs we can switch between different kind of maps and search engines.
Q: Which button let us move the map to the current position of the device?
Solution: The geolocation HTML includes a currentPositionBtn which is used to move the map to the current position of the device, there are 3 inputs to let the user choose the geolocation options enableHighAccuracy, timeout, and maximumAge.
Q: Search box does not contain __________
Solution: Search box contains an input field in which we can insert the name of the place you are looking for, a search button or a dropdown list, depending on user experience provided by the search tool.
Q: How many kinds of map does Geo support?
Solution: Geo supports 3 different kinds of interactive map like OpenStreeMap, Google Maps, a hybrid map that is Google Map with OpenStreetMap tiles placed on it, these maps are loaded in 3 different HTML elements.
Q: OpenStreetMap cannot extend map to implement __________
Solution: The openStreetMap and GoogleMap objects extent Map to implement showPOIs, showMap, search and showPosition methods, which make use of Google Maps and OpenLayers library.
Q: Which is not a kind of error?
Solution: Examples of error are POSITION_UNAVAIALBLE, PERMISSION_DENIED and TIMEOUT. PositionError is the object returned by Geolocation API in case of error.
Q: getCurrentPosition does not take the argument?
Solution: getCurrentPosition method takes three arguments successCallbaack, errorCallback, options. A successCallback set to GetMap.showMap by MapSwitcher or to GeoMap.showPosition by GeolocationBox.
Q: Which of the following cancels an ongoing watchPosition call?
Solution: clearWatch cancels an ongoing watchPosition call, watchPosition method retrieves periodic updates about a current geographic location of the device, getCurrentPosition retrieves current geographic location.
You Have Score    | /10 |