HTML Questions & Answers – HTML Google Maps – 2

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()?
a) mapTypes
b) controls
c) overlayMapTypes
d) zoom
View Answer

Answer: d
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()?
a) dbclick
b) drag
c) click
d) mouseover
View Answer

Answer: b
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?
a) dragend
b) drag
c) dragstart
d) idle
View Answer

Answer: b
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.
advertisement
advertisement

4. Which of the following event will be called when user’s mouse exits map container?
a) mouseout
b) mouseover
c) mousemove
d) resize
View Answer

Answer: a
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?
a) tilesloaded
b) zoom_changed
c) tilt_changed
d) resize
View Answer

Answer: d
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.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which object will represent a Marker icon?
a) Marker
b) MarkerShape
c) MarkerImage
d) Marker
View Answer

Answer: c
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?
a) ScaleControlOptions
b) ScaleControlStyle
c) RotateControlOptions
d) ControlPosition
View Answer

Answer: a
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.
advertisement

8. Which of the following will provide options for rendering overview map control?
a) MapTypeControlStyle
b) OverviewMapControlOptions
c) MapTypeControlOptions
d) PanControlOptions
View Answer

Answer: b
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. Options for rendering pan control is given by PanControlOptions.

9. Which will specify placement of controls on map?
a) ControlPosition
b) StreetViewControlOptions
c) ScaleControlStyle
d) ScaleControlOptions
View Answer

Answer: a
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.
advertisement

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.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.