Closed GoogleCodeExporter closed 9 years ago
This is already in place - check out the source for this demo to see how it's
possible to call your own custom "onload" code along with the map load
functions -
http://www.bradwedell.com/phpgooglemapapi/demos/advanced_multiple_maps.php
ex:
<body onLoad="onload();">
<script type="text/javascript">
function onload(){
<?=$MAP_OBJECT->printOnLoadFunction();?>();
//your code here
}
</script>
or if you prefer jquery:
<script type="text/javascript">
$(function(){
<?=$MAP_OBJECT->printOnLoadFunction();?>();
//your code here
});
</script>
Original comment by b...@mycnl.com
on 18 Sep 2011 at 4:40
Original issue reported on code.google.com by
daiv...@gmail.com
on 9 Jul 2011 at 7:17