Auto Expand Marker Info
-
To get the Marker Boxes to auto open, then add the following;
new google.maps.event.trigger( location_marker, 'click' );
To the
set_map_markers
function;function set_map_markers(map, map_data, info_window) { var map_markers = map_data.map_markers; $(map_markers).each(function(index, marker_data) { var marker_icon = map_data.map_params.default_marker; "undefined" != typeof marker_data.marker && marker_data.marker.length > 0 && (marker_icon = eval("(" + marker_data.marker + ")")); var marker_label = ""; "undefined" != typeof marker_data.label && marker_data.label.length > 0 && (marker_label = marker_data.label); var location_marker = new Marker({ map: map, zIndex: 9, icon: marker_icon, label: marker_label }), marker_lat = marker_data.lat, marker_lng = marker_data.lng; location_marker.setPosition(new google.maps.LatLng(marker_lat, marker_lng)), location_marker.setVisible(!0), google.maps.event.addListener(location_marker, "click", function() { info_window.close(), info_window.setContent('<div id="infobubble-content" class="loading"></div>'), set_info_window_content(marker_data, info_window), info_window.open(map, location_marker) }); new google.maps.event.trigger( location_marker, 'click' ); }) }
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Auto Expand Marker Info’ is closed to new replies.