I ve tried adding the following sample code from google into my zf app.
in the head section:
<style type="text/css">
html, body, #map_canvas {
margin: 0;
padding: 0;
height: 100%;
}
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var map;
function initialize() {
var myOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById( map_canvas ),
myOptions);
}
google.maps.event.addDomListener(window, load , initialize);
</script>
<div id="map_canvas"></div>
如果我对地图表示不满意,但如果我使用我的布局,那就消失了。 谁能告诉我什么进展?