Full Screen – Google Maps Api V3


You may have noticed that most of the maps on this site have a ‘Full screen’ option. Here is the code that supports this functionality, that you can add to your own Google Maps application (if you’re using the version 3 API).

First, you need to download this Javascript file

Next, add a reference to the file in your HTML like so

	<script src="js/FullScreenControl.js" type="text/javascript"></script>

Finally, add the control to your map, with the following line of Javascript

	map.controls[google.maps.ControlPosition.TOP_RIGHT].push(
	  new FullScreenControl(map));
Full Screen – Google Maps Api V3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s