<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Google Cloud Platform Console arşivleri - Yunus Emre Araç</title>
	<atom:link href="https://www.yunusemrearac.com/tag/google-cloud-platform-console/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.yunusemrearac.com/tag/google-cloud-platform-console/</link>
	<description>SharePoint Consultant &#124; Microsoft 365 &#124; SharePoint Server &#38; Online</description>
	<lastBuildDate>Mon, 13 Jan 2020 10:20:07 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://www.yunusemrearac.com/wp-content/uploads/2014/11/MetroUI_VisualStudio_2012-545c8860_site_icon-32x32.png</url>
	<title>Google Cloud Platform Console arşivleri - Yunus Emre Araç</title>
	<link>https://www.yunusemrearac.com/tag/google-cloud-platform-console/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">67294213</site>	<item>
		<title>JavaScript ile Google Maps Api Kullanarak Sayfaya Google Haritaları Ekleme İşlemi</title>
		<link>https://www.yunusemrearac.com/2020/01/13/javascript-ile-google-maps-api-kullanarak-sayfaya-google-haritalari-ekleme-islemi/</link>
					<comments>https://www.yunusemrearac.com/2020/01/13/javascript-ile-google-maps-api-kullanarak-sayfaya-google-haritalari-ekleme-islemi/#respond</comments>
		
		<dc:creator><![CDATA[yunusemrearac]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 10:20:07 +0000</pubDate>
				<category><![CDATA[Javascript - Jquery]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Cloud Platform Console]]></category>
		<category><![CDATA[Google Haritalar]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Google Maps Api]]></category>
		<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">http://yunusemrearac.com/?p=2374</guid>

					<description><![CDATA[<p>Merhaba arkadaşlar bugün sizlere javascript ile google maps api servisini kullanarak html sayfamıza nasıl google harıtaları ekleyeceğimizden bahsedeceğim. İlk olarak Google Cloud Platform Console sitesine&#8230;</p>
<p>The post <a href="https://www.yunusemrearac.com/2020/01/13/javascript-ile-google-maps-api-kullanarak-sayfaya-google-haritalari-ekleme-islemi/">JavaScript ile Google Maps Api Kullanarak Sayfaya Google Haritaları Ekleme İşlemi</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Merhaba arkadaşlar bugün sizlere javascript ile google maps api servisini kullanarak html sayfamıza nasıl google harıtaları ekleyeceğimizden bahsedeceğim.</p>
<p>İlk olarak <a href="https://cloud.google.com/console/google/maps-apis/overview" target="_blank" rel="noopener noreferrer">Google Cloud Platform Console</a> sitesine giderek buradan google maps api key almanız gerekmektedir.  Api keyimizi aldıktan sonra bir tane <strong>&#8220;.html&#8221;</strong> uzantılı bir sayfa oluşturuyoruz ve bu html sayfasının içine default html taglarımızı ekliyoruz.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;  
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Bu kısımda sırası ile kodlarımızı eklememiz gerekmektedir. İlk olarak body tagı içerisine bir <strong>&#8220;map&#8221;</strong> id li bir div ekliyoruz. Bu div tagına harıtamızı yükleyeceğiz.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="map"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Daha sonraki aşamamızda bu map divi için head tagı içerisine yükseklik ve genişliği belirleyeceğimiz css kodlarının yer alacağı style tagını ve kodlarını ekliyoruz.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
      #map {
        height: 400px;
        width: 100%;
       }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="map"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Bu css kodlarını eklemediğimiz zaman haritamız yüklenecektir ama herhangi bir yükseklik ve genişlik olmayacağından dolayı sayfa da görünmeyecektir. Bundan sonra js ile sayfamıza google maps apimizi eklememiz gerekmektedir.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
      #map {
        height: 400px;
        width: 100%;
       }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="map"&gt;&lt;/div&gt;
  
  &lt;script async defer src="https://maps.googleapis.com/maps/api/js?key=GoogleMapsApiKey&amp;callback=initMap" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Burada scriptimizi body tagının kapanışının hemen üstüne eklememiz gerekiyor. Google maps api url sinde yer alan <strong>&#8220;key&#8221;</strong> parametresinin değeri olan <strong>&#8220;GoogleMapsApiKey&#8221;</strong> yazan yere aldığımız google maps api keyini yazıyoruz. <strong>&#8220;callback&#8221;</strong> parametresinin karşısında yer alan değer <strong>&#8220;initMap</strong>&#8221; ise bu api çaprıldığında tetiklenecek olan javascript functionın ismi gelmesi gerekmektedir. Ben function ismini değiştirmiyorum ve hemen üstüne bu isimde bir function oluşturuyorum.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
      #map {
        height: 400px;
        width: 100%;
       }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="map"&gt;&lt;/div&gt;
  
  &lt;script&gt;
	function initMap() {
	  
	}
  &lt;/script&gt;
  
  &lt;script async defer src="https://maps.googleapis.com/maps/api/js?key=GoogleMapsApiKey&amp;callback=initMap" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Kalan son işlemimiz ise bu oluştrduğumuz function içerisinde map apimizi kullanarak oluşturduğumuz div içierisine eklemek olacaktır.</p><pre class="urvanov-syntax-highlighter-plain-tag">var map = new google.maps.Map(document.getElementById('map'), {zoom: 6, center: { lat: 39.515137, lng: 24.979530 }});</pre><p>Yukarıdaki kodumuzu functionımızın içerisine ekliyoruz. Burada google.maps.Map fonksiyonuna hangi elemente import edeceğini ve özelliklerini belirttik. İlk özellik haritanın zoom oranı diğer özellik ise ilk yüklenmede hangi konumu merkez olacak şekilde haritayı açmasını belirttiğimiz özelliklerdir.</p>
<p>Tüm bu işlemlerden sonra kodumuzun son çalışır hali aşağıdaki gibi olacaktır.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
      #map {
        height: 400px;
        width: 100%;
       }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="map"&gt;&lt;/div&gt;
  
  &lt;script&gt;
	function initMap() {
	  var map = new google.maps.Map(document.getElementById('map'), {zoom: 6, center: { lat: 39.515137, lng: 24.979530 }});
	}
  &lt;/script&gt;
  
  &lt;script async defer src="https://maps.googleapis.com/maps/api/js?key=GoogleMapsApiKey&amp;callback=initMap" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;footer&gt;
  &lt;/footer&gt;
&lt;/html&gt;</pre><p>Bu kodu tarayıcı üzerinde açtığımız zaman haritamız aşağıdaki gibi gelecektir.</p>
<p><a href="http://yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-2375 aligncenter" src="https://yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps.png" alt="" width="1920" height="1041" srcset="https://www.yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps.png 1920w, https://www.yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps-300x163.png 300w, https://www.yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps-1024x555.png 1024w, https://www.yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps-768x416.png 768w, https://www.yunusemrearac.com/wp-content/uploads/2020/01/firstGoogleMaps-1536x833.png 1536w" sizes="(max-width: 1920px) 100vw, 1920px" /></a></p>
<p>Gördüğünüz gibi sorunsuz bir şekilde belirlediğimiz özellikler ile haritamız yüklenmiş oldu.</p>
<p>The post <a href="https://www.yunusemrearac.com/2020/01/13/javascript-ile-google-maps-api-kullanarak-sayfaya-google-haritalari-ekleme-islemi/">JavaScript ile Google Maps Api Kullanarak Sayfaya Google Haritaları Ekleme İşlemi</a> appeared first on <a href="https://www.yunusemrearac.com">Yunus Emre Araç</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.yunusemrearac.com/2020/01/13/javascript-ile-google-maps-api-kullanarak-sayfaya-google-haritalari-ekleme-islemi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2374</post-id>	</item>
	</channel>
</rss>
