A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 166

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 166

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 166

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 166

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 167

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 167

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 167

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 167

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 453

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: gmap/mod.gmap.php

Line Number: 454

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /storage/av01427/www/objective_html/system/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 479

Objective HTML - Google Maps for ExpressionEngine - Examples Jump to Content

Objective HTML

Google Maps for ExpressionEngine

The complete geolocation and mapping toolkit

Markers and Dropdowns

This example shows how to the exp:gmap:dropdown method to add all the markers that are added to the map to a dropdown. Currently this method only works for Markers, not routes, or regions. The value that appears in the dropdown is set using the title parameter. Markers plotted using the fieldtype that also have a title will appear. Using the title parameter will override any user defined value.

Also notice, when you click the Austin, TX marker the other Infowindows will close if they are open. You can set the show_one_window parameter on the exp:gmap:marker method.


	
{exp:gmap:init id="map5"
	class="gmap"
	scrollwheel="false"
	center="United States"
	zoom="4"
	style="width:100%;height:400px"}


{exp:gmap:marker
	id="map5"
	title="Austin, TX"
	address="Austin Texas"
	show_one_window="true"
	extend_bounds="false"
	open_windows="false"}
		Austin, TX
{/exp:gmap:marker}


{exp:gmap:marker
	id="map5"
	title="Dallas, TX"
	address="Dallas Texas"
	extend_bounds="false"
	open_windows="false"}
		Dallas, TX
{/exp:gmap:marker}


{exp:gmap:marker
	id="map5"
	title="San Antonio, TX"
	address="San Antonio Texas"
	extend_bounds="false"
	open_windows="false"}
		San Antonio, TX
{/exp:gmap:marker}



{exp:gmap:dropdown id="map5"}