This set of Tough HTML Questions and Answers focuses on “HTML Google Maps – 2”.
1. Which of the following is not the property of Map()?
Explanation: There are three properties of map namely mapTypes, controls, overlayMapTypes. MapTypes is a registry of MapType which instances by string ID. Additional controls to attach to map is provided by controls.
2. Which of the following event does not take a MouseEvent argument in Map()?
Explanation: There are various events of Map() that takes MouseEvent as an argument. Some of them are dbclick, click, mouseout, mousemove, mouseover, rightclick. When a user clicks the map click event is fired and on double clicking on the map dbclick event is fired.
3. Which of the following event will be fired when a user drags the map?
Explanation: The drag event will be fired repeatedly while the user drags the map. When the user stops dragging the map dragend event will be fired, dragstart event will be fired when a user starts dragging the map.
4. Which of the following event will be called when user’s mouse exits map container?
Explanation: mouseout event will be called when user’s mouse exits mouse container, mouseover event will be called when the user’s mouse enters map container, mousemove event will be called when user’s mouse moves over the map.
5. Which event will be fired when the map changes size?
Explanation: resize event will be fired when the map changes the size, zoom_changed event will be fired when map zoom property is changed, tilt_changed event will be fired when map tilt property changes, tilesloaded event will be fired when visible tiles have finished loading.
6. Which object will represent a Marker icon?
Explanation: MarkerImage will represent a structure of a Marker icon or shadow image. The shape of the marker is defined by MarkerShape. Options for rendering the marker are shown by MarkerOptions. Marker object simply creates a Marker.
7. Which object shows options for rendering of scale control?
Explanation: ScaleControlOptions provide options for rendering of scale control, ScaleControlStyle specifies kind of the scale control to display, RotateControlOptions shows options for rendering of rotate control, ControlPosition specifies placement of controls of map.
8. Which of the following will provide options for rendering overview map control?
Explanation: OverviewMapControlOptions will provide options for rendering of overview map control, MapTypeControlStyle will specify kind of map control to display. MapTypeControlOptions holds options to modify a control.
9. Which will specify placement of controls on map?
Explanation: ControlPosition specifies placement of controls on map, StreetViewControlOptions provides options for rendering of street view control, ScaleControlStyle specifies kind of scale control to display, ScaleControlOptions lsit down options for rendering sacle control.
Sanfoundry Global Education & Learning Series – HTML.
To practice tough questions and answers on all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.