Title: PGallagher69's Replies | WordPress.org

---

# PGallagher69

  [  ](https://wordpress.org/support/users/pgallagher69/)

 *   [Profile](https://wordpress.org/support/users/pgallagher69/)
 *   [Topics Started](https://wordpress.org/support/users/pgallagher69/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pgallagher69/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pgallagher69/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pgallagher69/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pgallagher69/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pgallagher69/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maps Builder - Google Maps Plugin] Auto Expand Marker Info](https://wordpress.org/support/topic/auto-expand-marker-info/)
 *  Thread Starter [PGallagher69](https://wordpress.org/support/users/pgallagher69/)
 * (@pgallagher69)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/auto-expand-marker-info/#post-5507265)
 * No probs [@webdevmattcrom](https://wordpress.org/support/users/webdevmattcrom/)….
   Glad to help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maps Builder - Google Maps Plugin] Auto Expand Marker Info](https://wordpress.org/support/topic/auto-expand-marker-info/)
 *  Thread Starter [PGallagher69](https://wordpress.org/support/users/pgallagher69/)
 * (@pgallagher69)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/auto-expand-marker-info/#post-5507263)
 * Yeah, this is definitely for Google-Maps_Builder;
 * [https://wordpress.org/plugins/google-maps-builder/](https://wordpress.org/plugins/google-maps-builder/)
 * Sorry about that! Feel free to remove my comment;
 * [https://wordpress.org/support/topic/auto-expand-marker-info?replies=8#post-6405391](https://wordpress.org/support/topic/auto-expand-marker-info?replies=8#post-6405391)
 * If you like!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maps Builder - Google Maps Plugin] Auto Expand Marker Info](https://wordpress.org/support/topic/auto-expand-marker-info/)
 *  Thread Starter [PGallagher69](https://wordpress.org/support/users/pgallagher69/)
 * (@pgallagher69)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/auto-expand-marker-info/#post-5507260)
 * Also… The function has been modified in recent updates… So the new function reads;
 *     ```
       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_markers_icon;
                   if (marker_icon === "none") {
                       var marker_icon = map_data.map_params.default_marker;
                       if (typeof marker_data.marker !== "undefined" && marker_data.marker.length > 0) {
                           marker_icon = eval("(" + marker_data.marker + ")")
                       }
                   }
                   var marker_label = "";
                   if (typeof marker_data.label !== "undefined" && 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
                   });
                   var marker_lat = marker_data.lat;
                   var marker_lng = marker_data.lng;
                   location_marker.setPosition(new google.maps.LatLng(marker_lat, marker_lng));
                   location_marker.setVisible(true);
                   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' );
               })
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maps Builder - Google Maps Plugin] Auto Expand Marker Info](https://wordpress.org/support/topic/auto-expand-marker-info/)
 *  Thread Starter [PGallagher69](https://wordpress.org/support/users/pgallagher69/)
 * (@pgallagher69)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/auto-expand-marker-info/#post-5507259)
 * Brain fade! Sorry… This mod is for the Maps Builder!… I blame the Christmas Break…
 * The file you need to modify is ;
 * google-maps-builder\public\assets\js\google-maps-builder.min.js
 * It helps to unminify it to find the function… But you’re looking for the set_map_markers
   function..;
 * function set_map_markers(map, map_data, info_window) {
 * etc
 * Sorry!!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Maps Builder - Google Maps Plugin] Auto Expand Marker Info](https://wordpress.org/support/topic/auto-expand-marker-info/)
 *  Thread Starter [PGallagher69](https://wordpress.org/support/users/pgallagher69/)
 * (@pgallagher69)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/auto-expand-marker-info/#post-5507252)
 * This needs deleting really… This applies to another plugin (Google Maps Widget)
   and was posted here by mistake..

Viewing 5 replies - 1 through 5 (of 5 total)