SlideShare a Scribd company logo
Script GI Group 1
นางสาว จุฑามาส เผือกผ่อง
รหัส 59170105
Week2 editplus
แสดงวันที่
ทำกล่องข้อขวำม
Week 3
Week 4
Get akey
AIzaSyBTXraDcIFm9HZgvzuDjebFWK-QBIXgnrs
content_copy
AIzaSyBeTpqZ-WrSEUlWBRpXWBEgozTqw1gPby0
Week5
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-
scalable=no">
<meta charset="utf-8">
<title>Simple markers</title>
<style>
/* Always set the map height explicitly to define the size of the
div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
function initMap() {
var myLatLng = {lat: -25.363, lng: 131.044};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 4,
center: myLatLng
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: 'Hello World!'
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key= YOUR_API_KEY &call
back=initMap">
</script>
</body>
</html>
Custom_marker
<!DOCTYPE html>
<html>
<head>
<title>Custom Markers</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-
scalable=no">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: {lat: 13.277605, lng: 100.926524},
mapTypeId: 'roadmap'
});
var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
var icons = {
parking: {
icon: iconBase + 'parking_lot_maps.png'
},
library: {
icon: iconBase + 'library_maps.png'
},
info: {
icon: iconBase + 'info-i_maps.png'
}
};
function addMarker(feature) {
var marker = new google.maps.Marker({
position: feature.position,
icon: icons[feature.type].icon,
map: map
});
}
var features = [
{
position: {lat:13.288134, lng:100.912272},
type: 'info'
}, {
position: {lat:13.276648,lng :100.924912},
type: 'parking'
}, {
position: {lat:13.279320, lng:100.924994},
type: 'library'
}
];
for (var i = 0, feature; feature = features[i]; i++) {
addMarker(feature);
}
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js…">
</script>
</body>
</html>
week6
!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<title>KML feature details</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#map {
float: left;
height: 100%;
width: 79%;
}
#content-window {
float: left;
font-family: 'Roboto','sans-serif';
height: 100%;
line-height: 30px;
padding-left: 10px;
width: 19%;
}
</style>
</head>
<body>
<div id="map"></div>
<div id="content-window"></div>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: {lat: 13.277605, lng: 100.926524}
});
var kmlLayer = new google.maps.KmlLayer({
url: 'https://sites.google.com/site/testkitta/kitta/bb1.kml…',
suppressInfoWindows: true,
map: map
});
kmlLayer.addListener('click', function(kmlEvent) {
var text = kmlEvent.featureData.description;
showInContentWindow(text);
});
function showInContentWindow(text) {
var sidediv = document.getElementById('content-window');
sidediv.innerHTML = text;
}
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js…">
</script>
</body>
</html>
<! Doctype html>
<html>
<head>
<meta name= " มุมมอง "content= " แปรง-scale= 1.0 ">"
<meta charset= " utf-8 ">"
คุณสมบัติ <title>kml details< / title>
<style>
Html, ร่างกาย {
สูง: 100 %;
ขอบ: 0;
ห่าง: 0;
}
#แผนที่ {
อัลลอย: ซ้าย
สูง: 100 %;
ความกว้าง:79 %;
}
#เนื้อหา {หน้าต่าง
อัลลอย: ซ้าย
ครอบครัวแบบอักษร: ' แหล่ะ ', ' sans-อริฟ ';
สูง: 100 %;
Line-ความสูง: 30 พิกเซล)
หน้าอกซ้าย: 10 พิกเซล)
ความกว้าง:19 %;
}
< / style>
< / head>
<body>
<div id= "แผนที่" แมนแมนเตะบอล /div>
<div id= "เนื้อหา-หน้าต่าง" #แมนแมนเตะบอล / div>
<script>
ฟังก์ชัน initmap {()
วาร์= แผนที่กูเกิ้ลใหม่ แผนที่ แผนที่ (เอกสาร แผนที่ getelementbyid (' ') {
ซูม:12
Center: {ลาด: 13.277605, แค่ 100.926524}
});
วาร์kmllayer = กูเกิ้ลใหม่ แผนที่ (kmllayer {
Url: https://sites.google.com/site/testkitta/kitta/bb1.kml?attredirects=0&d=1',
Suppressinfowindows: จริงนะ
แผนที่: แผนที่
});
Kmllayer. Addlistener ('คลิก', ฟังก์ชัน (kmlevent) {
วาร์ข้อความ= kmlevent. Featuredata. คาอธิบาย;
Showincontentwindow (ข้อความ)
});
ฟังก์ชัน showincontentwindow {(ข้อความ)
วาร์sidediv = เอกสาร เนื้อหา getelementbyid ('-'); หน้าต่าง
Sidediv. ; ข้อความ innerhtml =
}
}
< / script>
หน่วงไม่ซิงค์ <script
Src=" https://maps.googleapis.com/maps/api/js?key=AIzaSyDl1_2_FBFOuHO3xee3zGYrxU
lU1FIqFMI&callback=initMap">
< / script>
< / body>
< / html>
https://sites.google.com/a/go.buu.ac.th/appjubuu0805/googlemap/geo.kml?attredirects=0&d=1
Delete blue tab
HTML
Togoogle
Week7
Margin = กำรใส่กรอบ
Padding= กำรเว้นระยะ
Openfile week6
<script asyncdefer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBvTlp7Kivg9z6omKX6k478rOZ-66gA-
RA&callback=initMap">
</script>
Polygon
Opacity= โปร่งแสง
Fill =เติมสี
Week8
Html color code
Week9
Type() บอกชนิดข้อมูล
Week10
1.input
2.output
3.distance
outside
full
[500,1000,1500,2000]
Week11
Week12
Week 13
Week 14
Load.. เปิดไฟล์ที่save

More Related Content

More from Thamon Monwan

Lab 4 exploration
Lab 4 explorationLab 4 exploration
Lab 4 exploration
Thamon Monwan
 
exporlation
exporlationexporlation
exporlation
Thamon Monwan
 
Exploration130361
Exploration130361Exploration130361
Exploration130361
Thamon Monwan
 
Whale2
Whale2Whale2
ชุดดินสัตหีบ2
ชุดดินสัตหีบ2ชุดดินสัตหีบ2
ชุดดินสัตหีบ2
Thamon Monwan
 
Toolbargis
ToolbargisToolbargis
Toolbargis
Thamon Monwan
 
script 59170252 g1
script 59170252 g1script 59170252 g1
script 59170252 g1
Thamon Monwan
 
Scriptgi 59170060 g1
Scriptgi 59170060 g1Scriptgi 59170060 g1
Scriptgi 59170060 g1
Thamon Monwan
 
sccriptgi 59170031 g1
sccriptgi 59170031 g1sccriptgi 59170031 g1
sccriptgi 59170031 g1
Thamon Monwan
 
capture 59170105 group 2
capture 59170105 group 2capture 59170105 group 2
capture 59170105 group 2
Thamon Monwan
 
capture 59170107 group 2
capture 59170107 group 2capture 59170107 group 2
capture 59170107 group 2
Thamon Monwan
 
แคปเจอร์ คอม 59170031 group1
แคปเจอร์ คอม 59170031 group1แคปเจอร์ คอม 59170031 group1
แคปเจอร์ คอม 59170031 group1
Thamon Monwan
 
capture แต่ล่ะ week 59170060 group1
capture แต่ล่ะ week  59170060 group1capture แต่ล่ะ week  59170060 group1
capture แต่ล่ะ week 59170060 group1
Thamon Monwan
 

More from Thamon Monwan (13)

Lab 4 exploration
Lab 4 explorationLab 4 exploration
Lab 4 exploration
 
exporlation
exporlationexporlation
exporlation
 
Exploration130361
Exploration130361Exploration130361
Exploration130361
 
Whale2
Whale2Whale2
Whale2
 
ชุดดินสัตหีบ2
ชุดดินสัตหีบ2ชุดดินสัตหีบ2
ชุดดินสัตหีบ2
 
Toolbargis
ToolbargisToolbargis
Toolbargis
 
script 59170252 g1
script 59170252 g1script 59170252 g1
script 59170252 g1
 
Scriptgi 59170060 g1
Scriptgi 59170060 g1Scriptgi 59170060 g1
Scriptgi 59170060 g1
 
sccriptgi 59170031 g1
sccriptgi 59170031 g1sccriptgi 59170031 g1
sccriptgi 59170031 g1
 
capture 59170105 group 2
capture 59170105 group 2capture 59170105 group 2
capture 59170105 group 2
 
capture 59170107 group 2
capture 59170107 group 2capture 59170107 group 2
capture 59170107 group 2
 
แคปเจอร์ คอม 59170031 group1
แคปเจอร์ คอม 59170031 group1แคปเจอร์ คอม 59170031 group1
แคปเจอร์ คอม 59170031 group1
 
capture แต่ล่ะ week 59170060 group1
capture แต่ล่ะ week  59170060 group1capture แต่ล่ะ week  59170060 group1
capture แต่ล่ะ week 59170060 group1
 

Script gi-group-1

  • 1. Script GI Group 1 นางสาว จุฑามาส เผือกผ่อง รหัส 59170105
  • 3.
  • 4.
  • 7.
  • 8.
  • 9.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 18.
  • 19. Week5 <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user- scalable=no"> <meta charset="utf-8"> <title>Simple markers</title> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ html, body { height: 100%; margin: 0; padding: 0; } </style> </head>
  • 20. <body> <div id="map"></div> <script> function initMap() { var myLatLng = {lat: -25.363, lng: 131.044}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 4, center: myLatLng }); var marker = new google.maps.Marker({ position: myLatLng, map: map, title: 'Hello World!' }); } </script> <script async defer src="https://maps.googleapis.com/maps/api/js?key= YOUR_API_KEY &call back=initMap"> </script> </body> </html>
  • 21.
  • 22.
  • 23. Custom_marker <!DOCTYPE html> <html> <head> <title>Custom Markers</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user- scalable=no"> <meta charset="utf-8">
  • 24. <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ html, body { height: 100%; margin: 0; padding: 0; } </style> </head> <body> <div id="map"></div> <script> var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { zoom: 16, center: {lat: 13.277605, lng: 100.926524}, mapTypeId: 'roadmap' }); var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/'; var icons = { parking: { icon: iconBase + 'parking_lot_maps.png' }, library: { icon: iconBase + 'library_maps.png' }, info: { icon: iconBase + 'info-i_maps.png' } }; function addMarker(feature) { var marker = new google.maps.Marker({ position: feature.position, icon: icons[feature.type].icon, map: map }); } var features = [ { position: {lat:13.288134, lng:100.912272}, type: 'info' }, {
  • 25. position: {lat:13.276648,lng :100.924912}, type: 'parking' }, { position: {lat:13.279320, lng:100.924994}, type: 'library' } ]; for (var i = 0, feature; feature = features[i]; i++) { addMarker(feature); } } </script> <script async defer src="https://maps.googleapis.com/maps/api/js…"> </script> </body> </html>
  • 26. week6 !DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0"> <meta charset="utf-8"> <title>KML feature details</title> <style> html, body { height: 100%; margin: 0; padding: 0; } #map { float: left; height: 100%; width: 79%; } #content-window { float: left; font-family: 'Roboto','sans-serif'; height: 100%; line-height: 30px; padding-left: 10px; width: 19%; } </style> </head> <body> <div id="map"></div> <div id="content-window"></div> <script> function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zoom: 12, center: {lat: 13.277605, lng: 100.926524} }); var kmlLayer = new google.maps.KmlLayer({ url: 'https://sites.google.com/site/testkitta/kitta/bb1.kml…', suppressInfoWindows: true, map: map }); kmlLayer.addListener('click', function(kmlEvent) { var text = kmlEvent.featureData.description;
  • 27. showInContentWindow(text); }); function showInContentWindow(text) { var sidediv = document.getElementById('content-window'); sidediv.innerHTML = text; } } </script> <script async defer src="https://maps.googleapis.com/maps/api/js…"> </script> </body> </html> <! Doctype html> <html> <head> <meta name= " มุมมอง "content= " แปรง-scale= 1.0 ">" <meta charset= " utf-8 ">" คุณสมบัติ <title>kml details< / title> <style> Html, ร่างกาย { สูง: 100 %; ขอบ: 0; ห่าง: 0; } #แผนที่ { อัลลอย: ซ้าย สูง: 100 %; ความกว้าง:79 %; } #เนื้อหา {หน้าต่าง อัลลอย: ซ้าย ครอบครัวแบบอักษร: ' แหล่ะ ', ' sans-อริฟ '; สูง: 100 %; Line-ความสูง: 30 พิกเซล) หน้าอกซ้าย: 10 พิกเซล) ความกว้าง:19 %; } < / style> < / head> <body> <div id= "แผนที่" แมนแมนเตะบอล /div> <div id= "เนื้อหา-หน้าต่าง" #แมนแมนเตะบอล / div> <script> ฟังก์ชัน initmap {()
  • 28. วาร์= แผนที่กูเกิ้ลใหม่ แผนที่ แผนที่ (เอกสาร แผนที่ getelementbyid (' ') { ซูม:12 Center: {ลาด: 13.277605, แค่ 100.926524} }); วาร์kmllayer = กูเกิ้ลใหม่ แผนที่ (kmllayer { Url: https://sites.google.com/site/testkitta/kitta/bb1.kml?attredirects=0&d=1', Suppressinfowindows: จริงนะ แผนที่: แผนที่ }); Kmllayer. Addlistener ('คลิก', ฟังก์ชัน (kmlevent) { วาร์ข้อความ= kmlevent. Featuredata. คาอธิบาย; Showincontentwindow (ข้อความ) }); ฟังก์ชัน showincontentwindow {(ข้อความ) วาร์sidediv = เอกสาร เนื้อหา getelementbyid ('-'); หน้าต่าง Sidediv. ; ข้อความ innerhtml = } } < / script> หน่วงไม่ซิงค์ <script Src=" https://maps.googleapis.com/maps/api/js?key=AIzaSyDl1_2_FBFOuHO3xee3zGYrxU lU1FIqFMI&callback=initMap"> < / script> < / body> < / html>
  • 32.
  • 33. Week7
  • 34.
  • 35. Margin = กำรใส่กรอบ Padding= กำรเว้นระยะ
  • 39. Week8
  • 41.
  • 43.
  • 47.