Google Maps ကျူတိုရီရယ်
Google Maps API
ဤသင်ခန်းစာသည် Google Maps API ( Application P rogramming I nterface ) အကြောင်းဖြစ်သည်။
API သည် ဆော့ဖ်ဝဲလ် အပလီကေးရှင်းများ တည်ဆောက်ရန်အတွက် အသုံးပြုနိုင်သည့် နည်းလမ်းများနှင့် ကိရိယာအစုံအလင်ဖြစ်သည်။
HTML တွင် Google Maps
ဤဥပမာသည် HTML ဖြင့် Google Map ကို ဖန်တီးသည်-
ဥပမာ
<!DOCTYPE html>
<html>
<body>
<h1>My First Google Map</h1>
<div id="googleMap" style="width:100%;height:400px;"></div>
<script>
function myMap() {
var mapProp= {
center:new
google.maps.LatLng(51.508742,-0.120850),
zoom:5,
};
var map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&callback=myMap"></script>
</body>
</html>