{"id":2062,"date":"2021-08-04T05:47:31","date_gmt":"2021-08-04T05:47:31","guid":{"rendered":"http:\/\/sw-themes.com\/porto_dummy\/?post_type=porto_builder&amp;p=2062"},"modified":"2021-08-04T05:47:31","modified_gmt":"2021-08-04T05:47:31","slug":"google-map","status":"publish","type":"porto_builder","link":"https:\/\/lawhubb.com\/?porto_builder=google-map","title":{"rendered":"Google Map"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2062\" class=\"elementor elementor-2062\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9acb827 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"9acb827\" data-element_type=\"section\">\r\n\t\t\r\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\r\n\t\t\t\t\t\t\t\t<div class=\"elementor-row\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d0b54a1\" data-id=\"d0b54a1\" data-element_type=\"column\">\r\n\t\t\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\r\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\r\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-30775cf elementor-widget elementor-widget-porto_google_map\" data-id=\"30775cf\" data-element_type=\"widget\" data-widget_type=\"porto_google_map.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div id='wrap_map_6a13f4152461b' class='porto-map-wrapper  ' style='height:600px;'><div id='map_6a13f4152461b' data-map_override='0' class='porto_google_map page_margin_top' style='width:100%;height:600px;'><\/div><\/div><script>\r\n( function() {\r\n\tvar porto_init_map = function() {\r\n\t\t( function( $ ) {\r\n\t\t\t'use strict';\r\n\t\t\tif (typeof google == 'undefined') {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvar map_map_6a13f4152461b = null;\r\n\t\t\tvar coordinate_map_6a13f4152461b;\r\n\t\t\ttry {\r\n\t\t\t\tcoordinate_map_6a13f4152461b=new google.maps.LatLng(40.7528214, -73.9580603);\r\n\t\t\t\tvar isDraggable = $(document).width() > 640 ? true : false;\r\n\t\t\t\tvar mapOptions = {\r\n\t\t\t\t\tzoom: 12,\r\n\t\t\t\t\tcenter: coordinate_map_6a13f4152461b,\r\n\t\t\t\t\tscaleControl: true,\r\n\t\t\t\t\tstreetViewControl: false,\r\n\t\t\t\t\tmapTypeControl: false,\r\n\t\t\t\t\tpanControl: false,\r\n\t\t\t\t\tzoomControl: false,\r\n\t\t\t\t\tscrollwheel: true,\r\n\t\t\t\t\tdraggable: isDraggable,\r\n\t\t\t\t\tzoomControlOptions: {\r\n\t\t\t\t\t\tposition: google.maps.ControlPosition.RIGHT_BOTTOM\r\n\t\t\t\t\t},mapTypeId: google.maps.MapTypeId.ROADMAP,};var map_map_6a13f4152461b = new google.maps.Map(document.getElementById('map_6a13f4152461b'),mapOptions);\r\n\t\t\t\t\t\tvar x = 'on';\r\n\t\t\t\t\t\tvar marker_map_6a13f4152461b = new google.maps.Marker({\r\n\t\t\t\t\t\tposition: new google.maps.LatLng(40.7528214, -73.9580603),\r\n\t\t\t\t\t\tanimation:  google.maps.Animation.DROP,\r\n\t\t\t\t\t\tmap: map_map_6a13f4152461b,\r\n\t\t\t\t\t\ticon: ''\r\n\t\t\t\t\t});\r\n\t\t\t\t\tgoogle.maps.event.addListener(marker_map_6a13f4152461b, 'click', toggleBounce);var infowindow = new google.maps.InfoWindow();\r\n\t\t\t\t\t\t\tinfowindow.setContent('<div class=\"map_info_text\" style=\\'color:#000;\\'><strong>Porto Law<\/strong> New York, NY 10017<\/div>');google.maps.event.addListener(marker_map_6a13f4152461b, 'click', function() {\r\n\t\t\t\t\t\t\t\tinfowindow.open(map_map_6a13f4152461b,marker_map_6a13f4152461b);\r\n\t\t\t\t\t\t\t});}\r\n\t\t\tcatch(e){};\r\n\t\t\tgoogle.maps.event.trigger(map_map_6a13f4152461b, 'resize');\r\n\t\t\t$(window).on('resize', function(){\r\n\t\t\t\tgoogle.maps.event.trigger(map_map_6a13f4152461b, 'resize');\r\n\t\t\t\tif(map_map_6a13f4152461b!=null) {\r\n\t\t\t\t\tmap_map_6a13f4152461b.setCenter(coordinate_map_6a13f4152461b);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('.ui-tabs').on('tabsactivate', function(event, ui) {\r\n\t\t\t   if($(this).find('.porto-map-wrapper').length > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t$(window).trigger('resize');\r\n\t\t\t\t\t},200);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$('.ui-accordion').on('accordionactivate', function(event, ui) {\r\n\t\t\t\tif($(this).find('.porto-map-wrapper').length > 0) {\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t$(window).trigger('resize');\r\n\t\t\t\t\t},200);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t$(document).on('onPortoModalPopupOpen', function(){\r\n\t\t\t\tif($(map_map_6a13f4152461b).parents('.porto_modal-content')) {\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t$(window).trigger('resize');\r\n\t\t\t\t\t},200);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfunction toggleBounce() {\r\n\t\t\t\tif (marker_map_6a13f4152461b.getAnimation() != null) {\r\n\t\t\t\t\tmarker_map_6a13f4152461b.setAnimation(null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmarker_map_6a13f4152461b.setAnimation(google.maps.Animation.BOUNCE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} )( window.jQuery );\r\n\t};\r\n\r\n\tif ( window.jQuery ) {\r\n\t\tporto_init_map();\r\n\t} else {\r\n\t\tdocument.addEventListener( 'DOMContentLoaded', porto_init_map );\r\n\t}\r\n\r\n\twindow.addEventListener( 'load', function() {\r\n\t\tsetTimeout( function() {\r\n\t\t\tjQuery( window ).trigger( 'resize' );\r\n\t\t}, 200 );\r\n\t} );\r\n} )();\r\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/section>\r\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"author":1,"featured_media":0,"template":"","porto_builder_type":[26],"_links":{"self":[{"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/porto_builder\/2062"}],"collection":[{"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/porto_builder"}],"about":[{"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/types\/porto_builder"}],"author":[{"embeddable":true,"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/porto_builder\/2062\/revisions"}],"wp:attachment":[{"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/media?parent=2062"}],"wp:term":[{"taxonomy":"porto_builder_type","embeddable":true,"href":"https:\/\/lawhubb.com\/index.php\/wp-json\/wp\/v2\/porto_builder_type?post=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}