Difference between revisions of "Code trial page"
From Akvopedia
Line 1: | Line 1: | ||
− | + | <!DOCTYPE html> | |
+ | <html> | ||
+ | <head> | ||
+ | <style> | ||
+ | #map-canvas { width:500px; height:300px; } | ||
+ | </style> | ||
+ | <script type="text/javascript" | ||
+ | src="http://maps.google.com/maps/api/js?sensor=false"> | ||
+ | </script> | ||
+ | <script type="text/javascript"> | ||
+ | var map; | ||
+ | var layerl0; | ||
+ | function initialize() { | ||
+ | map = new google.maps.Map(document.getElementById('map-canvas'), { | ||
+ | center: new google.maps.LatLng(2.6214484962674076, 98.33225075069755), | ||
+ | zoom: 14, | ||
+ | mapTypeId: google.maps.MapTypeId.ROADMAP | ||
+ | }); | ||
+ | layerl0 = new google.maps.FusionTablesLayer({ | ||
+ | query: { | ||
+ | select: "col31", | ||
+ | from: "1_MyBy6PAYxcs_XsPYUmr_9jHkpru4JVeUuHfR_U" | ||
+ | }, | ||
+ | map: map, | ||
+ | styleId: 1, | ||
+ | templateId: 2 | ||
+ | }); | ||
+ | } | ||
+ | google.maps.event.addDomListener(window, 'load', initialize); | ||
+ | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | <div id="map-canvas"></div> | ||
+ | </body> | ||
+ | </html> |
Revision as of 02:51, 18 February 2013
<!DOCTYPE html> <html> <head> <style>
- map-canvas { width:500px; height:300px; }
</style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script> <script type="text/javascript"> var map; var layerl0; function initialize() { map = new google.maps.Map(document.getElementById('map-canvas'), { center: new google.maps.LatLng(2.6214484962674076, 98.33225075069755), zoom: 14, mapTypeId: google.maps.MapTypeId.ROADMAP }); layerl0 = new google.maps.FusionTablesLayer({ query: { select: "col31", from: "1_MyBy6PAYxcs_XsPYUmr_9jHkpru4JVeUuHfR_U" }, map: map, styleId: 1, templateId: 2 }); } google.maps.event.addDomListener(window, 'load', initialize); </script> </head> <body>
</body> </html>