{"id":4463,"date":"2013-08-19T13:03:04","date_gmt":"2013-08-19T13:03:04","guid":{"rendered":"http:\/\/192.168.1.121\/wordpress.mu\/wordspace\/?page_id=4463"},"modified":"2013-08-19T13:03:04","modified_gmt":"2013-08-19T13:03:04","slug":"contact-template","status":"publish","type":"page","link":"https:\/\/imaginem.cloud\/photoreactive\/contact\/contact-template\/","title":{"rendered":"Contact template"},"content":{"rendered":"\n    <div class=\"googlemaps\" id=\"map\"><\/div>\n\t\n    \n\t<style type=\"text\/css\">\n\t\t.googlemaps { width: 1300px;}\n\t\t.googlemaps { height: 300px;}\n\t\t.googlemaps {max-width:100%;font-weight: bold; color: #000;}\n        .googlemaps img {max-width: 100000%; \/* override *\/}\n    <\/style>\n    <script type=\"text\/javascript\">\n\tjQuery(document).ready(function(){\n\t\tvar latlng = new google.maps.LatLng(0, 0);\n\t\tvar myOptions = {\n\t\t\tzoom: 17,\n\t\t\tcenter: latlng,\n\t\t\tscrollwheel: true,\n\t\t\tscaleControl: false,\n\t\t\tdisableDefaultUI: false,\n\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\t};\n\t\tvar map = new google.maps.Map(document.getElementById(\"map\"),\n\t\tmyOptions);\n\t\t\n\t\t    var geocoder_map = new google.maps.Geocoder();\n\t\t\tvar address = 'American Museum of Natural History,Central Park W, New York, NY';\n\t\t\tgeocoder_map.geocode( { 'address': address}, function(results, status) {\n\t\t\t\tif (status == google.maps.GeocoderStatus.OK) {\n\t\t\t\t\tmap.setCenter(results[0].geometry.location);\n\t\t\t\t\t\n\t\t\t\t\t\tvar marker = new google.maps.Marker({\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tposition: map.getCenter()\n\t\t\t\t\t\t});\njQuery(window).bind(\"resize\", function () { \n\tmap.panTo(marker.getPosition());\n});\n\t\t\t\t\t\t\tvar contentString = 'Display Location Text Here';\n\t\t\t\t\t\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\t\t\tcontent: contentString\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\t\t\t\t\t\t  infowindow.open(map,marker);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tinfowindow.open(map,marker);\n\t\t\t\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\talert(\"Geocode was not successful for the following reason: \" + status);\n\t\t\t}\n\t\t\t});\n\t\t\t});<\/script>\n<div class=\"clearfix divider-common divider-blank\" style=\"padding-top:20px;padding-bottom:20px;\"><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":4459,"menu_order":0,"comment_status":"open","ping_status":"open","template":"template-contact.php","meta":{"footnotes":""},"class_list":["post-4463","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/pages\/4463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/comments?post=4463"}],"version-history":[{"count":0,"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/pages\/4463\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/pages\/4459"}],"wp:attachment":[{"href":"https:\/\/imaginem.cloud\/photoreactive\/wp-json\/wp\/v2\/media?parent=4463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}