Hi,

Could someone help me please. I am havinf a problem with my Map in
IE6. It is failing to display properly. I read somewhere to place my
script at the bottom of the html, and I have tried that. With other
pages it works but for this one it does not. It works though in
Glorious FF.

I am a newbie, and I got someone to script it for me, but I can't get
a hold of him. Could someone lend a hand please?

Thanks in advance...

------------------------------------
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='maheader'>Event location</td>
</tr>
<tr>
<td class='event_box'>
<form action='user_event_edit.php' method='post'>
        <div class='event_map' id='event_map'></div>
  <input type='hidden' name='event_lat' id='event_lat'
value='-37.800832416'>
  <input type='hidden' name='event_lon' id='event_lon'
value='145.059013367'>
  <input type='hidden' name='event_zoom' id='event_zoom'>
</form>
</td>
</tr>
</table>

... some more code here...


</table>
<br><br>

  <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAGD4rsvRfdyt01If-
aMu6UhTffsZgpgprnjzKGxfDEMZIkCj-zhSvBKz49_ukDqHOroKmfv6fO9ZiLA"
type="text/javascript"></script>

 <script type="text/javascript">
        var map = new GMap2(document.getElementById('event_map'));
          map.addControl(new GLargeMapControl());
          map.addControl(new GMapTypeControl());
    map.addControl(new GScaleControl());
          map.enableScrollWheelZoom();
                map.setCenter(new GLatLng(-37.800832416,145.059013367), 
parseInt()
|| 12);
                $('event_zoom').value = map.getZoom();

                                                var baseIcon = new GIcon();
                                baseIcon.iconSize = new GSize(28, 28);
                                baseIcon.iconAnchor = new GPoint(10, 28);
                                baseIcon.infoWindowAnchor = new GPoint(14, 2);
                                baseIcon.shadow = 
"http://www.XXX/images/markers/sign_shadow.png";;
                                //baseIcon.shadowSize = new GSize(40, 28);
                                //baseIcon.infoShadowAnchor = new GPoint(18, 
25);
                                // create current position marker
                                var icon = new GIcon(baseIcon);
                                icon.image = 
'http://www.XXX/images/markers/home.png';


        var point = new GMarker(new GLatLng(-37.800832416,145.059013367),
icon);
        map.addOverlay(point);


                function $(x) { return document.getElementById(x) }
          GEvent.addListener(map, 'click', function(x, pt) {
                if (point) map.removeOverlay(point);
                point = new GMarker(pt,icon);
                map.addOverlay(point);
                $('event_lat').value = pt.lat();
                $('event_lon').value = pt.lng();
          });
          GEvent.addListener(map, 'zoomend', function(x, level) {
                        $('event_zoom').value = level;
          });

  </script>




</td>
</tr>
</table>
<br style="clear:both" />

</div>
... end of html

--~--~---------~--~----~------------~-------~--~----~
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