var properties = { "data": [ { "id": 1, "title": "Beautiful single home", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": true, "latitude": 51.541599, "longitude": -0.112588, "address": "123 Kathal St. Tampa City, ", "area": 1000, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-1.png", "type_icon": "img/building.png" }, { "id": 2, "title": "Modern Family Home", "price": 2505.11, "listing_for": "Rent", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.538395, "longitude": -0.097418, "address": "123 Kathal St. Tampa City, ", "area": 2500, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-2.png", "type_icon": "img/building.png" }, { "id": 3, "title": "Sweet Family home", "price": 2505.11, "listing_for": "Rent", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": true, "latitude": 51.539212, "longitude": -0.118403, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-3.png", "type_icon": "img/building.png" }, { "id": 4, "title": "Park avenue", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": true, "latitude": 51.522340, "longitude": -0.037894, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-5.png", "type_icon": "img/building.png" }, { "id": 5, "title": "Masons Villas", "price": 2505.11, "listing_for": "Rent", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.513965, "longitude": -0.038837, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-5.png", "type_icon": "img/building.png" }, { "id": 6, "title": "Big Head House", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.503965, "longitude": -0.058837, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-6.png", "type_icon": "img/building.png" }, { "id": 7, "title": "155/A Valley Street 7", "price": 2505.11, "listing_for": "Rent", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.555385, "longitude": -0.128274, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-5.png", "type_icon": "img/building.png" }, { "id": 8, "title": "4552 Lynn Avenue 1", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.560935, "longitude": -0.111365, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-4.png", "type_icon": "img/building.png" }, { "id": 9, "title": "4552 Lynn Avenue 2", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.543803, "longitude": -0.036607, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-3.png", "type_icon": "img/building.png" }, { "id": 10, "title": "4552 Lynn Avenue 3", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.527306, "longitude": -0.140977, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-2.png", "type_icon": "img/building.png" }, { "id": 11, "title": "4552 Lynn Avenue 4", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.558907, "longitude": -0.041842, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-1.png", "type_icon": "img/building.png" }, { "id": 12, "title": "Sweet Family home", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": true, "latitude": 51.550644, "longitude": -0.103493, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-6.png", "type_icon": "img/building.png" }, { "id": 13, "title": "Sweet Family home", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.532112, "longitude": -0.051885, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-5.png", "type_icon": "img/building.png" }, { "id": 14, "title": "4552 Lynn Avenue 7", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": true, "latitude": 51.531311, "longitude": -0.052314, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-4.png", "type_icon": "img/building.png" }, { "id": 15, "title": "Park avenue", "price": 2505.11, "listing_for": "Sale", 'author': 'Jhon Doe', 'date': '5 days ago', "is_featured": false, "latitude": 51.530189, "longitude": -0.078750, "address": "123 Kathal St. Tampa City, ", "area": 2123, "room": 4, "bathroom": 3, "balcony": 3, "lounge": 1, "garage": 1, "image": "img/properties/properties-3.png", "type_icon": "img/building.png" } ] }; function drawInfoWindow(property) { var image = 'img/logo.png'; if (property.image) { image = property.image } var title = 'N/A'; if (property.title) { title = property.title } var address = ''; if (property.address) { address = property.address } var description = 'lorem ipsum dolor sit amet, cfeugiat congue qmper lorem ipsum dolor sit amet'; if (property.description) { description = property.description } var area = 1000; if (property.area) { area = property.area } var Beds = 5; if (property.bedroom) { Beds = property.bedroom } var bathroom = 5; if (property.bathroom) { bathroom = property.bathroom } var garage = 1; if (property.garage) { garage = property.garage } var price = 253.33; if (property.price) { price = property.price } var ibContent = ''; ibContent = "
" + address + "
" + description + "
" + "
\n' +
' \n' +
'
';
if (property.type_icon) {
icon = '