Google Maps glitch [updated with screen]

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
amh1010
Forum Newbie
Posts: 19
Joined: Sat Feb 06, 2010 1:49 pm

Google Maps glitch [updated with screen]

Post by amh1010 »

I'm getting a weird glitch in Google Maps on Internet Explorer 7. The map shrinks (it's not cut off) for no apparent reason. Any ideas?

Doctype declaration in header:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>realtorboss.com</title>
</head>
Map code:

Code: Select all

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAGwxNszAlcCf5mbo7W7Gl1hQPbkF1pzwXdbhl9I6mEN23mBM7DRRvAWceOGLUAzuNPkr4geUWR7_7WQ"></script>
<div id="map" style="width: 600px; height: 600px;"></div>
<script type="text/javascript">
// Display the map, with some controls and set the initial location 
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());	  
map.setCenter(new GLatLng(38.951,-92.335),8);
// Set up three markers with info windows 
</script>
What the error looks like:
Image
Post Reply