phpdevshell team mailing list archive
-
phpdevshell team
-
Mailing list archive
-
Message #01387
Re: [Question #233934]: problem when loading google map
Question #233934 on PHPDevShell changed:
https://answers.launchpad.net/phpdevshell/+question/233934
Status: Answered => Open
joha is still having a problem:
Dear Greg,
I have change my code according your suggestion and unfortunately, my
web page doesn't display any map.
below is my code
{literal}
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function MYProject_initialize() {
map = new google.maps.Map(document.getElementById("map_canvas"), {
center: new google.maps.LatLng(3.33, 122.333),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scaleControl: true,
mapTypeControl: true,
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.LARGE
},
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR
},
streetViewControl: true,
navigationControl: true,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.SMALL
}
});
}
</script>
<script>
$(document).ready(function() {
MYProject_initialize();
}
</script>
{/literal}
{$test}
<div id="map_canvas" style="width:600px;height:600px"></div>
--
You received this question notification because you are a member of
PHPDevShell, which is an answer contact for PHPDevShell.