Green Ways
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout
Green Ways
My geo location
Get Direction
";
// create an info window for map
info_window = new google.maps.InfoWindow({
content: info_content,
maxWidth: 400 /*Add configuration for max width*/
});
function initMap() {
/* Create new map instance*/
map = new google.maps.Map(document.getElementById('gmap'), {
zoom: 16,
center: saved_lat_lng
});
/*var marker = new google.maps.Marker({
map: map,
position: saved_lat_lng
});*/
var marker = new Marker({
position: saved_lat_lng,
map: map,
icon: {
path: MAP_PIN,
fillColor: 'transparent',
fillOpacity: 1,
strokeColor: '',
strokeWeight: 0
},
map_icon_label: '
'
});
marker.addListener('click', function() {
info_window.open(map, marker);
});
google.maps.event.addListener(info_window, 'domready', function() {
var closeBtn = $('#iw-close-btn').get();
google.maps.event.addDomListener(closeBtn[0], 'click', function() {
info_window.close();
});
});
}
initMap();
//Convert address tags to google map links -
$('address').each(function() {
var link = "" + $(this).text() + "";
$(this).html(link);
});
/* initialize slick */
/* image gallery slider */
function sliderNavigation(slider, prevArrow, nextArrow) {
$(prevArrow).on('click', function() {
slider.slick('slickPrev');
});
$(nextArrow).on('click', function() {
slider.slick('slickNext');
});
}
var $listingGallerySlider = $('.atbd_directory_gallery');
var $listingGalleryThumbnail = $('.atbd_directory_image_thumbnail');
$listingGallerySlider.slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
asNavFor: '.atbd_directory_image_thumbnail',
rtl: false });
$(".olAlphaImg").on("click", function() {
$('.mapHover').addClass('active');
});
$('.mapHover span i.fa-times').on('click', (e) => {
$('.mapHover').removeClass('active');
});
/* image gallery slider */
sliderNavigation($listingGallerySlider, '.atbd_directry_gallery_wrapper .prev', '.atbd_directry_gallery_wrapper .next');
$listingGalleryThumbnail.slick({
slidesToShow: 5,
slidesToScroll: 1,
arrows: false,
asNavFor: '.atbd_directory_gallery',
focusOnSelect: true,
variableWidth: true,
rtl: false });
}); // ends jquery ready function.