'
+ '
'
);
infowindow.open(map, marker);
}
})(marker, i));
markers.push(marker);
//extend the bounds to include each marker's position
bounds.extend(marker.position);
}
//now fit the map to the newly inclusive bounds
map.fitBounds(bounds);
google.maps.event.addListenerOnce(map, 'bounds_changed', function(event) {
limitMaxZoom();
});
// Clustering
var options = {
gridSize: 25,
imagePath: 'https://www.canadiantx.org/media/com_mtree/images/m'
};
var markerCluster = new MarkerClusterer(map, markers, options);
jQuery(".toggleMap").on("click", function () {
jQuery("#map").slideToggle("slow", function() {
google.maps.event.trigger(map, "resize");
map.fitBounds(bounds);
limitMaxZoom();
});
jQuery("span", this).text(jQuery("span",this).text() == "Hide map" ? "Show map" : "Hide map");
return false;
});
function limitMaxZoom(){
var maxZoom = 15;
if (map.getZoom() > maxZoom) {
map.setZoom(maxZoom);
}
}
'
// + locations[i][4]
+ '
'
+ ''
+ 'Read more'
+ '
'
+ 'Best Western Oasis Inn
0 reviews303 S 2nd Street, Canadian, TX, 79014
Conveniently located just off Highway 60 in Hemphill County, our Canadian, TX hotel offers the best in customer service and accommodations for both business and leisure travelers. Each well-appointed guest room includes a microwave, refrigerator, 32-inch ...
Canadian Courts Motel
0 reviews220 N 2nd St, Canadian, TX, 79014
ABOUT: **50 Luxurious Rooms with seperate courtyard for private outdoor parties **Conference Room to accomodate up to 200. **Catering available from The Railhead **The Railhead Club and Grill. Family dining at its best.