block by wboykinm 4370304

CartoDB runtime load

Full Screen

index.html

<!DOCTYPE html>
<html>
<head>
    <title>CartoDB Runtime</title>
    <style>
      html, body, #map {
        height: 100%;
        padding: 0;
        margin: 0;
      }
    </style>
  <link rel="stylesheet" href="//geosprocket.com/assets/leaflet/dist/leaflet.css" />
	<!--[if lte IE 8]><link rel="stylesheet" href="//geosprocket.com/assets/leaflet/dist/leaflet.ie.css" /><![endif]-->

	
	
</head>
<body>
	<div id="map"></div>
</body>

	<script src="//libs.cartocdn.com/cartodb.js/v2/cartodb.js"></script>
	
	<script>
	    function main() {
	    	
	    	 map = new L.Map('map', { 
	   		 center: [34.885,-3.032],
	    		zoom: 8
	  		})
	          cartodb.loadLayer(map, {
        		type: 'cartodb',
        		options: {
            		    table: 'ag_2011_commune3',
            		    user_name: 'dai'
            		    query: 'select * from ag_2011_commune3'
        		}
   		  })
      	    }

    	    window.onload = main;

  	</script>

</html>