<?

ho trovato un post che in teoria spiega come evitare la fastidiosa apertura dell'alert "oggetto non protetto" su IE nel caso di utilizzo con SSL e google maps.
qui è il post..
http://groups.google.com/group/Googl...e81cbe4086938c


l'ho testato ma in realtà riesco solo a inizializzare la mappa, visualizzando i controlli. La mappa è grigia con la dicitura " we are sorry but dont have maps at this zoom ".
Ma non è in realtà un problema di zoom.

Il codice lato server è :


$loadUrl = $_SERVER [ "argv" ] [ 0 ];
/** Loading the content of the thing we got */
$content = join ( '', file ( $loadUrl ) );
/** Using it under test conditions on both http and https
connections, so we have to select here */
$scheme = ($_SERVER [ "SERVER_PORT" ] == 80 ? "http" : "https");
/** Building redirect path */
$wwwpath = $scheme."://".$_SERVER [ "HTTP_HOST" ].$_SERVER [
"SCRIPT_NAME" ]."?";
/** Replacing the content */
$content = str_replace ( "http://", $wwwpath."http://", $content );
/** Output */
echo $content ;


lato client:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example: Simple Map</title>
<script src="inc/sslproxy.php?http://maps.google.com/maps?file=api...p;key=mia_keys"
type="text/javascript"></script>
<script type="text/javascript">

function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 2);
map.setUIToDefault();
}
}

</script>
</head>

<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>