﻿
{"id":1115,"date":"2012-12-10T14:12:02","date_gmt":"2012-12-10T14:12:02","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=1115"},"modified":"2012-12-10T14:12:02","modified_gmt":"2012-12-10T14:12:02","slug":"google-map-api-3-0-tiklanan-alanin-koordinat-ve-zoom-bilgileri","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/google-map-api-3-0-tiklanan-alanin-koordinat-ve-zoom-bilgileri\/","title":{"rendered":"Google Map Api 3.0 \u2013 T\u0131klanan Alan\u0131n Koordinat ve Zoom Bilgileri"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p><a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2012\/12\/harita2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2012\/12\/harita2.png\" alt=\"\" title=\"harita2\" width=\"619\" height=\"440\" class=\"aligncenter size-full wp-image-1116\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2012\/12\/harita2.png 619w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2012\/12\/harita2-300x213.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/a><br \/>\n<!--more--><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; \/&gt;\r\n&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=UTF-8&quot;\/&gt;\r\n&lt;title&gt;Google Maps JavaScript API v3 Example: Map Geolocation&lt;\/title&gt;\r\n&lt;link href=&quot;http:\/\/code.google.com\/apis\/maps\/documentation\/javascript\/examples\/default.css&quot; rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; \/&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/maps.googleapis.com\/maps\/api\/js?sensor=true&quot;&gt;&lt;\/script&gt;        \r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;form name=&quot;harita_formu&quot; method=&quot;post&quot;&gt;\r\n            &lt;input type=&quot;hidden&quot; name=&quot;tur&quot; value=&quot;harita&quot;&gt;\r\n            &lt;table id=&quot;box-table-a&quot;&gt;\r\n                &lt;tbody&gt;\r\n                    &lt;tr&gt;\r\n                        &lt;td&gt;Harita&lt;\/td&gt;\r\n                        &lt;td&gt;\r\n                            &lt;script type=&quot;text\/javascript&quot;\r\n                                   src=&quot;http:\/\/maps.google.com\/maps\/api\/js?sensor=false&quot;&gt;\r\n                            &lt;\/script&gt;\r\n                            &lt;script type=&quot;text\/javascript&quot;&gt;\r\n                                function initialize() {\r\n                                    var Koordinatlar = new google.maps.LatLng(39.86156903970107,32.83813489062504);\r\n                                    var myOptions = {\r\n                                        zoom: 6,\r\n                                        center: Koordinatlar,\r\n                                        mapTypeId: google.maps.MapTypeId.HYBRID\r\n                                    };\r\n                                    var map = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;),\r\n                                    myOptions);\r\n                                    var BilgiPenceresi = new google.maps.InfoWindow(\r\n                                    { content: 'www.gencayyildiz.com',\r\n                                        size: new google.maps.Size(50,50),\r\n                                        position: Koordinatlar\r\n                                    });\r\n                                    BilgiPenceresi.open(map);\r\n                                    var Isagretci = new google.maps.Marker({\r\n                                        map:map,\r\n                                        draggable:true,\r\n                                        animation: google.maps.Animation.DROP,\r\n                                        position: Koordinatlar,\r\n                                        icon: 'http:\/\/google-maps-icons.googlecode.com\/files\/factory.png'\r\n                                    });\r\n                                    google.maps.event.addListener(Isagretci, 'dragend', function(){\r\n                                        Isagretci.setAnimation(google.maps.Animation.BOUNCE);\r\n                                    });\r\n                                    google.maps.event.addListener(map, 'click', function(event){\r\n                                        \/\/map.setCenter(event.latLng);\r\n                                        BilgiPenceresi.setPosition(event.latLng);\r\n                                        Isagretci.setPosition(event.latLng);\r\n                                        document.forms&#x5B;'harita_formu'].elements&#x5B;'harita_zoom'].value=map.getZoom();\r\ndocument.forms&#x5B;'harita_formu'].elements&#x5B;'harita_geo'].value=event.latLng.lat()+&quot;,&quot;+event.latLng.lng();\r\n                                    });\r\n                                    google.maps.event.addListener(map, 'zoom_changed', function(event) {\r\n                                        document.forms&#x5B;'harita_formu'].elements&#x5B;'harita_zoom'].value=map.getZoom();\r\n\/\/document.forms&#x5B;'harita_formu'].elements&#x5B;'harita_geo'].value=event.latLng.lat()+&quot;,&quot;+event.latLng.lng();\r\n                                    });\r\n                                }\r\n                            &lt;\/script&gt;\r\n                            &lt;div id=&quot;map_canvas&quot; style=&quot;width:605px; height: 400px; border:10px solid #e3e3ca&quot;&gt;&lt;script type=&quot;text\/javascript&quot;&gt;initialize()&lt;\/script&gt;&lt;\/div&gt;\r\n                            &lt;input type=&quot;text&quot; name=&quot;harita_geo&quot; value=&quot;39.86156903970107,32.83813489062504&quot; \/&gt;\r\n                            &lt;input type=&quot;text&quot; name=&quot;harita_zoom&quot; value=&quot;6&quot;  \/&gt;\r\n                            &lt;div class=&quot;f_kc&quot;&gt;\r\n                                &lt;ul&gt;\r\n                                    &lt;li&gt;Harita \u00fczerindeki ev simgesini firman\u0131z\u0131n bulundu\u011fu adres \u00fczerine yerle\u015ftiriniz. &lt;\/li&gt;\r\n\r\n                                    &lt;li&gt;Simge harita \u00fczerinde her t\u0131klad\u0131\u011f\u0131n\u0131z yere gelecektir.&lt;\/li&gt;\r\n                                &lt;\/ul&gt;\r\n                            &lt;\/div&gt;\r\n                        &lt;\/td&gt;\r\n                    &lt;\/tr&gt;\r\n                    &lt;tr&gt;\r\n                        &lt;td&gt;Adres Bilginiz&lt;\/td&gt;\r\n                        &lt;td&gt;&lt;text type=&quot;text&quot; class=&quot;text&quot; style=&quot;width:605px;&quot;&gt;H\u00dcRR\u0130YET MH. 1744 SK. \u015eENZEYBEK APT. NO:1 KAT:1 MERS\u0130N&lt;\/text&gt;&lt;\/td&gt;\r\n                    &lt;\/tr&gt;\r\n                    &lt;tr&gt;\r\n                        &lt;td&gt;&lt;\/td&gt;\r\n                        &lt;td&gt;&lt;input type=&quot;button&quot; class=&quot;genel buton buton2&quot; value=&quot;Kaydet&quot; onclick=&quot;DugmeleriKitle(); submit();&quot; \/&gt;&lt;\/td&gt;\r\n                    &lt;\/tr&gt;\r\n                &lt;\/tbody&gt;\r\n            &lt;\/table&gt;\r\n        &lt;\/form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[300],"tags":[303,253,305,306,302],"class_list":["post-1115","post","type-post","status-publish","format-standard","hentry","category-google-teknolojileri","tag-api-3-0","tag-google","tag-google-api","tag-koordinat","tag-v3"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/1115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=1115"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/1115\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=1115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=1115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=1115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}