neftona / php-google-map-api

Automatically exported from code.google.com/p/php-google-map-api
0 stars 0 forks source link

Blank map #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What are the requirements of php/apache to run your class correctly?
I've tried it in 3 servers: 2 are ok, 1 gets me a blank map...

For the test i used this sample page: 
http://www.bradwedell.com/phpgooglemapapi/demos/simple_streetview.php

Original issue reported on code.google.com by marco.ar...@gmail.com on 24 Nov 2011 at 3:37

GoogleCodeExporter commented 9 years ago
I forget: this is the code of the "wrong" page:

<html>
<head>
<script type='text/javascript' 
src='http://maps.google.com/maps/api/js?sensor=false'></script><script 
type="text/javascript" charset="utf-8">
//<![CDATA[
/*************************************************
 * Created with GoogleMapAPI3.0beta
 * Author: Brad Wedell <brad AT mycnl DOT com>
 * Link http://code.google.com/p/php-google-map-api/
 * Copyright 2010 Brad Wedell
 * Original Author: Monte Ohrt <monte AT ohrt DOT com>
 * Original Copyright 2005-2006 New Digital Group
 * Originial Link http://www.phpinsider.com/php/code/GoogleMapAPI/
 *************************************************/
var to_htmlsmap=[];var from_htmlsmap=[];var mapmap=null;function 
onLoadmap(){var 
mapObjmap=document.getElementById("map");if(mapObjmap!='undefined'&&mapObjmap!=n
ull){var 
mapOptionsmap={scrollwheel:true,zoom:16,mapTypeId:google.maps.MapTypeId.HYBRID,m
apTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.
DEFAULT}};mapmap=new google.maps.Map(mapObjmap,mapOptionsmap);}}
function isArray(a){return isObject(a)&&a.constructor==Array;}
function isObject(a){return(a&&typeof a=='object')||isFunction(a);}
function isFunction(a){return typeof a=='function';}
function isEmpty(obj){for(var i in obj){return false;}return true;}//]]>
</script>
</head>
<body>
<script language="javascript" type="text/javascript" 
charset="utf-8">window.onload=onLoadmap;</script><script type="text/javascript" 
charset="utf-8">
//<![CDATA[
document.write('<div id="map" style="width: 500px; height: 500px; 
position:relative;"><\/div>');
//]]>
</script>
<noscript>Javascript must be enabled in order to use Google Maps.</noscript>
<div id="sidebar_map" class="sidebar_map"></div>
</body>
</html>

Original comment by marco.ar...@gmail.com on 24 Nov 2011 at 4:26