function initMap(){ // Map options var options = { zoom:13, iconImage:icono, center: {lat: 6.19784, lng: -75.58322}, content: title + "

Fabrica

"+ '

Cr 50C # 10 sur 17, Medellín, Antioquia

' } // New map var map = new google.maps.Map(document.getElementById('map'), options); var icono = { url: "/wp-content/themes/strawberry/images/f.png", scaledSize: new google.maps.Size(80, 80), } var title = "

Helados la Fresita

"; // Array of markers var markers = [ { coords:{lat: 6.17095, lng: -75.61253}, iconImage:icono, content: title + "

Itagüi, Antioquia - Carrera 50A # 46 - 04

"+ '

Tel: 557 99 86

' // 'Ver en Google Maps' }, { coords:{lat: 6.2322106, lng: -75.5981994}, iconImage:icono, content: title + "

Belén, Antioquia - Calle 30A # 77 - 74

"+ '

Tel: 322 99 00

'+ '

Cel: 310 445 8707

' }, { coords:{lat: 6.24539, lng: -75.55842}, iconImage:icono, content: title + "

Bostón, Antioquia - Carrera 38 # 50 - 36

"+ '

Tel: 239 53 00

'+ '

Tel: 322 92 32

'+ '

Cel: 320 811 4065

' }, { coords:{lat: 5.7476982, lng: -75.6089818}, iconImage:icono, content: title + "

La Pintada, Antioquia - Calle 30A # 30 - 16

"+ '

Cel: 313 607 7842

' }, { coords:{lat: 6.37637,lng: -75.44791}, iconImage:icono, content: title + "

Girardota, Antioquia - Carrera 15 # 5 - 4

"+ '

Tel: 322 83 88

'+ '

Cel: 312 269 4930

' }, { coords:{lat: 6.25156, lng: -75.59211}, iconImage:icono, content: title + "

Estadio, Antioquia - Carrera 73 # 45D - 39

"+ '

Tel: 401 79 85

'+ '

Cel: 350 761 0408

' }, { coords:{lat: 6.19784, lng: -75.58322}, iconImage:icono, content: "

Helados la Fresita Fabrica

" + "

Medellín, Antioquia - Carrera 50C 10 sur 17

"+ '

Tel: 285 95 95

' // Ver en Google Maps' }, { coords:{lat: 6.33624, lng: -75.55752}, iconImage:icono, content: title + "

Bello, Antioquia - Calle 52 # 48 - 62

"+ '

Tel: 272 72 86

' }, { coords:{lat: 6.20532, lng: -75.58697}, iconImage:icono, content: title + "

Centro Comercial El Rodeo, Antioquia - Calle 6 Sur 52 - 74

"+ '

Tel: 361 09 09

' } ]; // Loop through markers for(var i = 0;i < markers.length;i++){ // Add marker addMarker(markers[i]); } // Add Marker Function function addMarker(props){ var marker = new google.maps.Marker({ position:props.coords, map:map, animation: google.maps.Animation.DROP, //icon:props.iconImage }); // Check for customicon if(props.iconImage){ // Set icon image marker.setIcon(props.iconImage); } // Check content if(props.content){ var infoWindow = new google.maps.InfoWindow({ content:props.content }); marker.addListener('click', function(){ infoWindow.open(map, marker); }); } } }