{"id":511,"date":"2017-07-02T11:50:07","date_gmt":"2017-07-02T11:50:07","guid":{"rendered":"http:\/\/xtratheme.com\/building\/?page_id=511"},"modified":"2017-07-02T11:50:07","modified_gmt":"2017-07-02T11:50:07","slug":"google-map","status":"publish","type":"page","link":"https:\/\/sangamindustries.com\/index.php\/google-map\/","title":{"rendered":"Google Map"},"content":{"rendered":"<section class=\"wpb-content-wrapper\"><p>[vc_row][vc_column]<div id=\"cz_15206\" class=\"cz_15206 gmap\" data-api-key=\"AIzaSyBtD89e_63nmA6xcZWW4y0s5Ll9HPTCvVQ\"> <\/div><div ><\/div><script>\n\t\t\tfunction mapfucntion_cz_15206() {\n\n\t\t\t\tgoogle.maps.Map.prototype.setCenterWithOffset= function(latlng, offsetX, offsetY) {\n\t\t\t\t    var map = this;\n\t\t\t\t    var ov = new google.maps.OverlayView();\n\t\t\t\t    ov.onAdd = function() {\n\t\t\t\t        var proj = this.getProjection();\n\t\t\t\t        var aPoint = proj.fromLatLngToContainerPixel(latlng);\n\t\t\t\t        aPoint.x = aPoint.x+offsetX;\n\t\t\t\t        aPoint.y = aPoint.y+offsetY;\n\t\t\t\t        map.setCenter(proj.fromContainerPixelToLatLng(aPoint));\n\t\t\t\t    }; \n\t\t\t\t    ov.draw = function() {}; \n\t\t\t\t    ov.setMap(this); \n\t\t\t\t};\n\n\t\t\t\tvar windx = jQuery(window), \n\n\t\t\t\t\tlatlng = new google.maps.LatLng(40.712784, -74.005941),\n\n\t\t\t\t\tmyOptions = {\n\t\t\t\t\t\tzoom: 14,\n\t\t\t\t\t\tscrollwheel: false,\n\t\t\t\t\t\tdisableDefaultUI: false,\n\t\t\t\t\t\tcenter: latlng\n\t\t\t\t\t},\n\n\t\t\t\t\tcz_15206 = new google.maps.Map(document.getElementById(\"cz_15206\"),\n\t\t\t\t\tmyOptions),\n\n\t\t\t\t\tsetCenterOffset = function() {\n\n\t\t\t\t\t\tif ( windx.width() < 768 ) {\n\t\t\t\t\t\t\tcz_15206.setCenterWithOffset( latlng, 0, 0 );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcz_15206.setCenterWithOffset( latlng, 0, 0 );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t};\n\n\t\t\t\tsetCenterOffset();\n\n\t\t\t\twindx.on( \"resize\", function() {\n\t\t\t\t\tsetCenterOffset();\n\t\t\t\t});\n\t\t\tvar styles = [{\"featureType\": \"all\",stylers: [{ hue: \"#efae16\" },{ saturation: -20}]}];var styledMap = new google.maps.StyledMapType(styles,{name: \"Styled Map\"});cz_15206.mapTypes.set(\"map_style\", styledMap);  cz_15206.setMapTypeId(\"map_style\");var image = \"https:\/\/sangamindustries.com\/wp-content\/uploads\/2018\/01\/pin-cons-1.png\";var marker = new google.maps.Marker({map: cz_15206,icon: image,position: cz_15206.getCenter()});\n\t\t\tvar contentString = '<div class=\"infowindow\" style=\"white-space:nowrap\">Construction Office<\/div>';\n\t\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\t\tcontent: contentString\n\t\t\t});\n\t\t\t\t\t\t\n\t\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\t\t  infowindow.open(cz_15206,marker);\n\t\t\t});\n\t\t\t}<\/script>[\/vc_column][\/vc_row]<\/p>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][\/vc_column][\/vc_row] &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/pages\/511"}],"collection":[{"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/comments?post=511"}],"version-history":[{"count":0,"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/pages\/511\/revisions"}],"wp:attachment":[{"href":"https:\/\/sangamindustries.com\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}