I can't get google maps working on most IE browsers. All the others
(safari, opera, FF) are fine.

I get an invalid argument on main.js but can't understand what's not
working.
For the record: you should see a moving background made out of a
google map picture.

The link is http://www.mattjakob.com/

the code is:

 <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAfUjZ6THkpHKknDwfopoapBRP5atYF3fcXqbWQb9PQ3l4kFMWqxQyBaIjXnliMsfA1XRK19Zd6cW0UA"
    type="text/javascript">
    </script>

   <script type="text/javascript">
   //<![CDATA[

                var geocoder;
                var map;
                var address = "algeria";
                var myLong;
                var myLat;

   // On page load, call this function

   function setMap()
   {

      // Create new map object
      map = new GMap2(document.getElementById("map_canvas"));
      // Create new geocoding object
      geocoder = new GClientGeocoder();
      // Retrieve location information, pass it to addToMap()
      geocoder.getLocations(address, addToMap);

      map.setMapType(G_SATELLITE_MAP );
      recursiveShift(map);

   }

   // This function adds the point to the map

   function addToMap(response)
   {

      // Retrieve the object
      place = response.Placemark[0];
      myLong = place.Point.coordinates[0];
      myLat = place.Point.coordinates[1];
      // Retrieve the latitude and longitude
      point = new GLatLng(place.Point.coordinates
[1],place.Point.coordinates[0]);
      // Center the map on this point
      map.setCenter(point, 9);
      map.setMapType(G_SATELLITE_MAP );

   }

        var spanner = - 0.008;

    function recursiveShift(map){

                myLong = myLong + spanner;
                if((myLong < -8) || (myLong > 8)) { spanner *= -1; }
                pos = new GLatLng( myLat, myLong );

                if(document.getElementById('waiting_screen').style.display !=
'none')
                {

                removeWaiting();
                }

                map.panTo( pos );


                window.setTimeout(function(){recursiveShift(map);}, 100);
        }

        function removeWaiting() {

        jQuery('#waiting_screen').fadeOut('slow', function ()
        {

        document.getElementById('waiting_screen').style.display = 'none';
        pageTracker._trackPageview('/LOADING_SUCCESS');
        }
        );
        }
        //]]>
    </script>



</head>

<body onload="setMap()">
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to