title: DISPLAY Google maps using Latitude & Longitude
body: <p>I have a problem... well i save my Latitude &amp; Longitude at .xml file</p>
  
  <p>php:</p>
  
  <pre><code>$lat=$_POST['lati'];
  $long=$_POST['lng'];
  </code></pre>
  
  <p>And i am trying to show user's location on google map. my code for showing my map is:</p>
  
  <pre><code>&lt;!--GOOGLE MAPS LIBRARY:--&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;script&gt;
  //LOCATION SCRIPT HERE
  
          function initialize() {
              var lat_place=document.getElementById("lati");
              var lng_place=document.getElementById("lng");
              var myLatlng = new google.maps.LatLng((document.getElementById("lati")), (document.getElementById("lng")));
              var myOptions = {
                  zoom: 8,
                  center: myLatlng,
                  mapTypeId: google.maps.MapTypeId.ROADMAP
    }
              var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  }
  
              function loadScript() {
              var script = document.createElement("script");
                  script.type = "text/javascript";
                  script.src = "http://maps.google.com/maps/api/js?sensor=false&amp;callback=initialize";
                  document.body.appendChild(script);
  }
  
          window.onload = loadScript;
  
  
          //LOCATION SCRIPT ENDS HERE
  &lt;/script&gt;
  </code></pre>