27.10.2014 Views

Google Maps API 3

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 4 ■ TAKING THE MAP FURTHER WITH MAPOPTIONS<br />

Figure 4-10. Notice the navigation control in the top-right corner. Depending on the size of the map, the<br />

<strong>API</strong> will either render this small version or render the big one.<br />

style<br />

The style of the navgationControl comes in four flavors that all reside in the<br />

google.maps.NavigationControlStyle class:<br />

• DEFAULT: If set to this value, the control will vary according the map size and other<br />

factors. As of now, that means it will display either the small or large control, but<br />

that might change in future releases.<br />

• SMALL: This is the small control. It only enables you to zoom the map.<br />

• ANDROID: This control is specially tailored for Android smart phones. It differs not<br />

only in look from the other controls but also in position since its default position is<br />

at the bottom center of the map.<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!