Change folder
This commit is contained in:
14
single.php
14
single.php
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user