Oh okay sorry about the source is here. The page is offline and online
(online when testing) so I didn't think the link would be helpful.
I've commented out the delay because it wasn;t working but other than
that it is the same.
<body onload="load();">
<script type="text/javascript">
//<![CDATA[
var geocoder;
var map;
var point;
var marker;
var bounds = new GLatLngBounds();
var address= '';
var address2 = '';
// On page load, call this function
function load()
{
// Create new map object
map = new GMap2(document.getElementById("map"));
// Create new geocoding object
geocoder = new GClientGeocoder();
// Retrieve location information, pass it to addToMap()
address2 = address;
address = ", , Israel";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Ithaca, New York, United States";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Fountain Valley, California, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Laguna Beach, California, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "San Francisco, California, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = ", Alabama, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Atlanta, Georgia, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Atlanta, Georgia, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Berlin, , Germany";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Boston, Massachusetts, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Boston, Massachusetts, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Chicago, Illinois, us";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Columbus, Ohio, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Detroit, Michigan, us";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = ", Iowa, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = ", , Israel";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "London, , England";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Melbourne, , Australia";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Minneapolis, Minnesota, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Minneapolis, Minnesota, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "New York City, New York, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Pittsburgh, Pennsylvania, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Salt Lake City, Utah, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "San Antonio, Texas, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "St. Louis, Missouri, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "St. Louis, Missouri, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Knoxville, Tennessee, US";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Toronto, , Canada";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Vancouver, , Canada";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
address2 = address;
address = "Vancouver, , Canada";
if (address2 != address) {
geocoder.getLocations(address, addToMap);
}
}
// function pause(milliseconds) {
// var dt = new Date();
// while
// ((new Date()) - dt <= milliseconds) { }
// }
function addToMap(response)
{
if (response.Status.code != 200) {
// pause(1700);
}
// Retrieve the object
place = response.Placemark[0];
// Retrieve the latitude and longitude
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
bounds.extend(point);
map.setCenter(bounds.getCenter(),
map.getBoundsZoomLevel(bounds));
// Create a marker
marker = new GMarker(point);
// Add the marker to map
map.addOverlay(marker);
// Add controls and zoom to map
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
// Add address information to marker
//marker.openInfoWindowHtml(place.address);
}
//]]>
</script>
<div id="map" />
On Oct 6, 2:19 pm, Rossko <[email protected]> wrote:
> You might find it useful to 'view source' in your browser and see what
> actually arrives at your webpage. We can't do that for you, because
> you haven't given a link to your page.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---