<div class="text-center small-12 medium-6 columns">
<h2>Getting Here</h2>
<!-- <img src="<?php echo esc_url( get_template_directory_uri() ) ;?>/assets/map-fpo.jpg">-->
- <div class="small-12 large-8 text-center columns" id="google-map">
+ <div class="small-12 large-8 columns" id="google-map">
<?php if (function_exists('glm_google_map')) {
- echo glm_google_map('150%', '274px');
+ echo glm_google_map('100%', '274px');
}?>
</div>
</div>
Map._map = new google.maps.Map(canvas, myOptions);
Map._latLngBounds = new google.maps.LatLngBounds();
Map._infoWindow = new google.maps.InfoWindow;
- Map._map.setZoom(14);
+
$.get(mydir + "map.xml", Map._loadData, 'xml');
},
Map._latLngBounds.getCenter()
);
Map._map.fitBounds(Map._latLngBounds);
-
+ google.maps.event.addListenerOnce(Map._map, 'bounds_changed', function(event) {
+ if (this.getZoom() > 15) {
+ this.setZoom(13);
+ }
+ });
if (typeof glm_searchMapIconActive !== "undefined" && glm_searchMapIconActive) {
$(".map-link").click(function (){
var linkId = $(this).attr("rel");
}
});
});
+ Map._map.setZoom(13);
}
};
Map._map = new google.maps.Map(canvas, myOptions);
Map._latLngBounds = new google.maps.LatLngBounds();
Map._infoWindow = new google.maps.InfoWindow;
- Map._map.setZoom(14);
+
$.get(mydir + "map.xml", Map._loadData, 'xml');
},
Map._latLngBounds.getCenter()
);
Map._map.fitBounds(Map._latLngBounds);
-
+ google.maps.event.addListenerOnce(Map._map, 'bounds_changed', function(event) {
+ if (this.getZoom() > 15) {
+ this.setZoom(13);
+ }
+ });
if (typeof glm_searchMapIconActive !== "undefined" && glm_searchMapIconActive) {
$(".map-link").click(function (){
var linkId = $(this).attr("rel");
}
});
});
+ Map._map.setZoom(13);
}
};