I am looking for places by keywords in the LatLngBounds array.
var boundsarr = new Array(); boundsarr[0] = new google.maps.LatLngBounds( new google.maps.LatLng(25.941886953491675, -80.17411103748543), new google.maps.LatLng(25.947676224813897, -80.16767330177947) ); boundsarr[1] = new google.maps.LatLngBounds( new google.maps.LatLng(25.941886953491675, -80.16767330177947), new google.maps.LatLng(25.94622890698334, -80.1644544339265) ); boundsarr[2] = new google.maps.LatLngBounds( new google.maps.LatLng(25.927413775186118, -80.1644544339265), new google.maps.LatLng(25.94622890698334, -80.15962613214703) ); boundsarr[3] = new google.maps.LatLngBounds( new google.maps.LatLng(25.927413775186118, -80.15962613214703), new google.maps.LatLng(25.931755728677782, -80.15801669822054) ); boundsarr[4] = new google.maps.LatLngBounds( new google.maps.LatLng(25.927413775186118, -80.15801669822054), new google.maps.LatLng(25.933203046508336, -80.15318839644107) ); boundsarr[5] = new google.maps.LatLngBounds( new google.maps.LatLng(25.92886109301667, -80.15318839644107), new google.maps.LatLng(25.933203046508336, -80.15157896251458) );
then adding markers to the map, into the array and creating a list of places returned using the marker array. Duplicate entries appear in the list, and I can’t understand why ..
Example: http://jsfiddle.net/2KrmY/ . How can I prevent duplicates from being displayed? Any help is much appreciated!
source share