hi,
i am using gmap. and using markers to mark the places. the code is
working fine.in my local system. i mean its just a html file with
javascrit in it. by double clicking this file everything works fine.
but when i am using the same code in my myspace developer account. the
code does not show any map output.except the map portion in my code,
evrything is ok means visible in output .
i have signed up for the key and using the key in my code.and also
given the
"http://profile.myspace.com"; as the url during signing up.
what may b the prblm. please reply soon.....

mycode:

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
    <title>Google Maps APP.</title>
        <style type="text/css">
      @import url("http://www.google.com/uds/css/gsearch.css";);
      @import url("http://www.google.com/uds/solutions/localsearch/
gmlocalsearch.css");
    </style>
       <script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAXX55By1NRWU31UKtBFjvRBRSa6A4BotpS6IgvCY_rENacWt-
zBRgnW6kVoPo42LFKve0tURkjWFoIQ" type="text/javascript"></script>
    <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0";
type="text/javascript"></script>
    <script src="http://www.google.com/uds/solutions/localsearch/
gmlocalsearch.js" type="text/javascript"></script>

        <script type="text/javascript">
    var map;

    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(getElementById('map_canvas'));
        var center=new GLatLng(37.4419, -122.1419);
                map.setCenter(center, 13);
        map.addControl(new GSmallMapControl());
                map.addControl(new GOverviewMapControl());
                // bind a search control to the map
        map.addControl(new google.maps.LocalSearch(),
                new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));

          }
    }
  function marker_enable(){

        var  marker_pos=new
GLatLng(map.getCenter().lat(),map.getCenter().lng());
            var  marker = new GMarker(marker_pos, {draggable: true});

       GEvent.addListener(marker, "dragstart", function() {
        map.closeInfoWindow();
       });

       GEvent.addListener(marker, "dragend", function() {
       LATLON=marker.getLatLng();
           var lat=LATLON.lat();
           var lon=LATLON.lng();

       $('latitude').value=lat;
           $('longitude').value=lon;
           marker.openInfoWindowHtml('lat: '+lat+'<br>'+'long: '+lon);
       });

        map.addOverlay(marker);


  }
   GSearch.setOnLoadCallback(initialize);

    </script>
  </head>
  <body onload="initialize();" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px" ></div>
        <input type="hidden" id="latitude">
        <input type="hidden" id="longitude">
        <input type="button" id="marker"
        value="mark" onclick="marker_enable();" >
  </body>
</html>


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