-
-
Save andtrev/ae78e7bc85c3a77a64f5d195636222f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function($){ | |
$('.wpgmza_map').on('wpgooglemaps_loaded', function(){ | |
var mid = parseInt($(this).attr('data-map-id')); | |
MYMAP[mid].map.on('markersplaced', function(event){ | |
$.each(wpgmaps_localize_marker_data[mid], function(i, v){ | |
MYMAP[mid].map.getMarkerByID(parseInt(v.marker_id)).googleMarker.setOptions({optimized: false}); | |
MYMAP[mid].map.getMarkerByID(parseInt(v.marker_id)).googleMarker.setZIndex(1000+parseInt(v.marker_id)); | |
}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment