Bu sunum INET-TR 2008 kapsamında ODTÜ KKM'de 21 Aralık 2008 Pazar günü 10.30-13.30 arası yapılmıştır. Sunumun diğer dosyalarına www.mekansal.com adresinden ulaşabilirsiniz.
--------------------------------------------------------------------
This presentation was presented on 21.12.2008, Sunday, 10.30-13.30 at INET-TR 2008 at CCC-METU. The example files can be downloaded from www.mekansal.com
30. Google Maps API Temeller İlk Örnek <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Maps JavaScript API Example</title> <script src="http://maps.google.com/maps?file=api&v=2&key= api_anahtar " type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if ( GBrowserIsCompatible() ) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } //]]> </script> </head> <body onload=" load() " onunload=" GUnload() "> <div id=" map " style="width:500px;height:300px"></div> </body> </html> Haritanın Gösterileceği Kısım Haritayı Başlatır/Bitirir Harita objesini oluşturur Tarayıcı uyumunu kontrol eder Google Maps APIsini ekler
31.
32.
33. Google Maps API Temeller Kontroller Ref-1 GLargeMapControl GSmallMapControl GSmallZoomControl GScaleControl GMapTypeControl GHierarchicalMapTypeControl GOverviewMapControl Kullanımı : map.addControl(new GSmallZoomControl());
34. Google Maps API Temeller Harita Tipleri ve Erişimleri Ref-2 G_NORMAL_MAP G_SATELLITE_MAP G_HYBRID_MAP G_PHYSICAL_MAP Kullanımı : map.setMapType(G_HYBRID_MAP);
35.
36.
37.
38.
39.
40.
41. Dinamik ve Statik Veri Gösterme Dinamik Veriler - GOverlay GOverlay Arayüzü (Interface) G M arker GPolyline GInfoWindow GTileLayerOverlay GPolygon