Change folder

This commit is contained in:
2017-02-11 16:39:57 +01:00
parent 3b26d798a9
commit c7cb1d7a02
3 changed files with 109 additions and 85 deletions

View File

@@ -20,7 +20,12 @@ get_header();
<?php
$coord = array();
xdebug_start_trace(null,XDEBUG_TRACE_HTML);
the_content();
xdebug_stop_trace();
?>
<?php //$content = apply_filters('the_content', get_the_content());
@@ -65,6 +70,7 @@ get_header();
var bounds = new google.maps.LatLngBounds();
var markers = new Array();
var iconCounter = 0;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
@@ -72,6 +78,8 @@ get_header();
map: map,
icon: icons[iconCounter]
});
/*markers.push(marker);*/
bounds.extend(marker.position);
@@ -91,6 +99,12 @@ get_header();
infowindow.open(map, marker);
}
})(marker, i));
iconCounter++;
if (iconCounter >= iconsLength) {
iconCounter = 0;
}
}
map.fitBounds(bounds);