What are the different controls for Google Maps?

On a Google map you can find a number of controls. Some of them are there by default and there are some controls you can specify and enable.

The default controls are:

Zoom             - slider or +/- button to control zoom level
Pan                 - a control for panning the map
MapType       - a toggle to choose either road-map or satellite view
StreetView     - a thumbnail overview map showing the current viewport, Pegman

Google Maps support these other controls:

Scale
Rotate
Overview map


You use the setOptions() method to change map options.

To disable default controls use this:
disableDefaultUI:true
If you want to turn on controls you need to include the following:

panControl:true,
zoomControl:true,
mapTypeControl:true,
scaleControl:true,
streetViewControl:true,
overviewMapControl:true,
rotateControl:true  
 

Find how you add controls here:
http://hodentekmobile.blogspot.com/2016/08/intel-xdk-displaying-map-controls-in.html

Comments

Popular posts from this blog

Follow these steps to install Android Studio Koalas and develop Android Apps

Android Mobile Simulator for Microsoft Edge

Apps with Mobile Roadie, the one-stop platform