Test Series - html

Test Number 57/72

Q: Which one of the following defines properties for the map?
A. mapOptions
B. zoom
C. center
D. mapTypeId
Solution: The variable mapOptions defines the properties of the map. Where to center the map is defined by center property, it uses longitude and latitude properties. To specify the zoom level for the map we use zoom property.
Q: Which one of the following is not google map overlay?
A. Polygon
B. Polyline
C. Eclipse
D. Marker
Solution: The objects on the map that are bound to longitude/latitude coordinates are overlays. Google Maps has many types of overlays. Marker, Polygon, Polyline, Circle, Rectangle, Info Windows, Custom overlays etc.
Q: For single locations on a map, we use the overlay for _______
A. Marker
B. Polygon
C. Polyline
D. Circle
Solution: Marker specifies the single locations on the map. It can also display custom icon images. A series of straight lines on a map can be specified by Polyline. A series of a straight line with the “closed” shape is defined by Polygon.
Q: Polyline will not support the property of _________
A. Path
B. StrokeOpacity
C. Editable
D. Fillcolor
Solution: Polyline supports various properties like strokeColor, strokeWeight, editable, strokeOpacity, path. The several longitude or latitude coordinates for a line is specified by path. An opacity of the line is specified by strokeOpacity.
Q: The property that is not supported by Polyline but by Polygon is _________
A. strokeWeight
B. fillOpacity
C. path
D. editable
Solution: The properties supported by polygon are strokeColor, strokeWeight, editable, fillOpacity, fillColor, path, strokeCapacity. The hexadecimal color for the area within an enclosed region is specified by fillColor, the opacity to fill color is specified by fillOpacity.
Q: The property which is not supported by the circle is _________
A. path
B. radius
C. center
D. fillColor
Solution: Circle supports the properties like radius, center, strokeOpacity, strokeCapacity, fillColor, fillOpacity, stokeOpacity, editable, specify google.maps.LatLng of center of circle, the radius of a circle is specified by radius. Opacity of stroke color is specified by strokeOpacity.
Q: The value of fillOpacity lies between __________
A. 0.0 and 2.0
B. 0.0 and 1.0
C. 2.0 and 3.0
D. 3.0 and 4.0
Solution: The value of fillOpacity lies between 0.0 and 1.0. The value of strokeOpacity also lies between 0.0 and 1.0, E.g path: Trip, strokeOpacity: 0.7, strokeWeight: 3, strokeColor: “#000FFF” .
Q: Which one of the following is not the default control in google maps?
A. Pan
B. Street view
C. MapType
D. Climate map
Solution: Google map has a default control set namely Pan, Zoom, Street view, MapType, Rotate, Overview map, scale. A slider or “+/-” buttons for controlling zoom level of the map. For panning the map we use pan control.
Q: Which control displays the current map viewport?
A. Scale
B. Overview Map
C. Street view
D. MapType
Solution: The control overview displays a thumbnail overview map which reflects the current map viewport within the wider area. A map scale element is displayed by scale control. Pegman icon that can be dragged to the map for enabling street view is displayed by this control. When a user wants to toggle between the maps (roadmap and satellite), Map Type is used.
Q: MapTypeControlOptions field may not contain _______
A. google.maps.MapTypeControlStyle.HORZONTAL_BAR
B. google.maps.MapTypeControlStyle.DEFAULT
C. google.maps.MapTypeControlStyle.DROPDOWN_MENU
D. google.maps.MapTypeControlStyle.LARGE
Solution: For modifying control we use mapTypeControlOptions field. google.maps.MapTypeControlStyle.HORZONTAL_BAR displays a single button for each map type. google.maps.MapTypeControlStyle.DEFAULT displays default behavior. google.maps.MapTypeControlStyle.DROPDOWN_MENU helps in selecting map type via dropdown menu.

You Have Score    /10