Hi,
I have a problem when I use a universal selector and show google maps
on my site.
Then google maps ist not shown correctly.
The Buttons for Map, Hybrid, Satellite are at the wrong place and also
the copyright notice ...
All are shown topleft in the edge.

I know, that if I skip the universal selector, then google maps works.
But I need the universal selector settings for other parts of my site.

I have used the following html code:

**************************
<!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"; xml:lang="en" lang="en">
<head>
        <title>Google Maps - Test</title>
        <meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1" />

<!-- Java script für Google Maps --------------------------------->
<script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAABXEYWTgeB-
ki3F9DiXSafRQ5PXjIRFXPLU465TjhQuV-km-
a7RRP1zOG0bVcDchGsvJmCPW1UHU3MA&amp;h1=de"
type="text/javascript"></script>

<style type="text/css">

* {
        padding: 0px;
        margin: 0px;
        border-width: 0px;
        top: 0;
        left: 0;
}

#twGmap {
        top: 10px;
        left: 10px;
        width: 375px;
        height: 380px;
}

}
</style>
</head>

<body onload="twGmapLoad();" onunload="GUnload();">
        <h2>Google Map Test</h2>

        <div id="twGmap"></div>

<script type="text/javascript">
function twGmapLoad ()
{
  if (GBrowserIsCompatible ())
  {
    if (document.getElementById ("twGmap"))
                {
                  var map = new GMap2(document.getElementById("twGmap"));
                        map.addControl(new GLargeMapControl());
                        map.addControl(new GMapTypeControl());
                        map.setCenter(new GLatLng(51.5,-0.126), 13, 
G_HYBRID_MAP);
          }
  }
}
</script>

</body>
</html>
********************************

Does anybody know a solution for this problem?

Best regards
Heiner

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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