Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="map_canvas"></div>
  <div id="store_lat_long"></div>
<script>
   /**
    * Load GoogleMaps API
    */
    $(function(){
        script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = 'http://maps.google.com/maps/api/js?sensor=false&callback=handleApiReady';
        document.body.appendChild(script);
    });
    /**
         * Show map once GoogleMaps API is ready
         */
    function handleApiReady() {     
        if ( $("#map_canvas").length > 0 ) {                
            var latlng = $("#store_lat_long").html();
            var details = latlng.split(',');
            initialize(Number(details[0]), Number(details[1]), 'map_canvas');
        }
    }
function initialize() {
  return; // nothing since I have no idea what the function does
}
</script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers