PGallagher69
Forum Replies Created
-
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Auto Expand Marker InfoNo probs @webdevmattcrom…. Glad to help!
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Auto Expand Marker InfoYeah, this is definitely for 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
If you like!
Forum: Plugins
In reply to: [Maps Builder - Google Maps Plugin] Auto Expand Marker InfoAlso… 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
In reply to: [Maps Builder - Google Maps Plugin] Auto Expand Marker InfoBrain 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
In reply to: [Maps Builder - Google Maps Plugin] Auto Expand Marker InfoThis needs deleting really… This applies to another plugin (Google Maps Widget) and was posted here by mistake..