{"id":229,"date":"2023-02-22T16:17:44","date_gmt":"2023-02-22T16:17:44","guid":{"rendered":"http:\/\/portal.seccimbio.com\/cms\/?page_id=229"},"modified":"2023-06-18T15:02:39","modified_gmt":"2023-06-18T15:02:39","slug":"mapas","status":"publish","type":"page","link":"https:\/\/portal.seccimbio.com\/cms\/mapas\/","title":{"rendered":"Mapas"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"229\" class=\"elementor elementor-229\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7a2449b elementor-section-boxed elementor-section-height-default elementor-section-height-default qodef-elementor-content-no\" data-id=\"7a2449b\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e5478e5\" data-id=\"e5478e5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ebfdcab elementor-widget elementor-widget-heading\" data-id=\"ebfdcab\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.11.1 - 15-02-2023 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h5 class=\"elementor-heading-title elementor-size-default\">En esta secci\u00f3n se visualizan los puntos de investigaci\u00f3n de las diferentes especies en la Rep\u00fablica de Panam\u00e1<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ff5da93 elementor-section-boxed elementor-section-height-default elementor-section-height-default qodef-elementor-content-no\" data-id=\"ff5da93\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bdb3232\" data-id=\"bdb3232\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-83371bf elementor-widget elementor-widget-shortcode\" data-id=\"83371bf\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\"><h1 class='srm_gmap_heading_1 '>Mapa - Puntos de Investigaci\u00f3n<\/h1>            <script type=\"text\/javascript\">\r\n                jQuery(document).ready(function ($) {\r\n                    var wgm_map = new google.maps.Map(document.getElementById(\"srm_gmp_embed_1\"), {\r\n                        center: new google.maps.LatLng(8.172473573845378,-81.81580341281601),\r\n                        zoom:7,\r\n                        mapTypeId: google.maps.MapTypeId.ROADMAP,\r\n                        scrollwheel: true,\r\n                        zoomControl: true,\r\n                        mapTypeControl: true,\r\n                        streetViewControl: true,\r\n                        fullscreenControl: true,\r\n                        draggable: true,\r\n                        disableDoubleClickZoom: false,\r\n                        panControl: true                    });\r\n                    var wgm_theme_json = '[]';\r\n                    if (wgm_theme_json.length > 0) {\r\n                        wgm_map.setOptions({styles: JSON.parse(wgm_theme_json)});\r\n                    }\r\n                    \/\/ To view directions form and data\r\n                                        var wgm_data_1 = {\r\n                        'action': 'wpgmapembed_p_get_markers_by_map_id',\r\n                        'data': {\r\n                            map_id: '359',\r\n                            ajax_nonce: 'fe84d14e01'\r\n                        }\r\n                    };\r\n                    var wgm_ajaxurl_1 = 'https:\/\/portal.seccimbio.com\/cms\/wp-admin\/admin-ajax.php'\r\n                    jQuery.post(wgm_ajaxurl_1, wgm_data_1, function (response) {\r\n                        response = JSON.parse(response);\r\n                        if (response.markers.length === 1) {\r\n                            var wgm_marker_to_1 = response.markers[0].marker_desc.replace(\/&gt;\/g, '>').replace(\/&lt;\/g, '<');\r\n                            jQuery('#srm_gmap_to_1').val(wgm_marker_to_1.replace(\/(<([^>]+)>)\/gi, \"\"));\r\n                        }\r\n                        var wgm_default_marker_icon_1 = 'https:\/\/maps.gstatic.com\/mapfiles\/api-3\/images\/spotlight-poi2.png';\r\n                        if (response.markers.length > 0) {\r\n                            var custom_markers = [];\r\n                            var custom_marker_infowindows = [];\r\n                            response.markers.forEach(function (wgm_marker, i) {\r\n                                var wgm_marker_lat_lng_1 = wgm_marker.lat_lng.split(',');\r\n                                wgm_custom_marker_1 = new google.maps.Marker({\r\n                                    position: new google.maps.LatLng(wgm_marker_lat_lng_1[0], wgm_marker_lat_lng_1[1]),\r\n                                    title: wgm_marker.marker_name,\r\n                                    animation: google.maps.Animation.DROP,\r\n                                    icon: (wgm_marker.icon === '') ? wgm_default_marker_icon_1 : wgm_marker.icon\r\n                                });\r\n                                custom_markers[i] = wgm_custom_marker_1;\r\n                                wgm_custom_marker_1.setMap(wgm_map);\r\n                                var wgm_marker_name_1 = (wgm_marker.marker_name !== null) ? ('<span class=\"info_content_title\" style=\"font-size:18px;font-weight: bold;font-family: Arial;\">'\r\n                                    + wgm_marker.marker_name +\r\n                                    '<\/span><br\/>') : '';\r\n                                wgm_marker.marker_desc = wgm_marker.marker_desc.replace(\/&gt;\/g, '>').replace(\/&lt;\/g, '<');\r\n                                custom_marker_infowindow = new google.maps.InfoWindow({\r\n                                    content: wgm_marker_name_1 + wgm_marker.marker_desc\r\n                                });\r\n                                custom_marker_infowindows[i] = custom_marker_infowindow;\r\n                                if (wgm_marker.show_desc_by_default === '1') {\r\n                                    custom_marker_infowindow.open({\r\n                                        anchor: wgm_custom_marker_1,\r\n                                        shouldFocus: false\r\n                                    });\r\n                                } else {\r\n                                    google.maps.event.addListener(wgm_custom_marker_1, 'click', function () {\r\n                                        custom_marker_infowindows[i].open({\r\n                                            anchor: custom_markers[i],\r\n                                            shouldFocus: false\r\n                                        });\r\n                                    });\r\n                                }\r\n                                if (wgm_marker.have_marker_link === '1') {\r\n                                    google.maps.event.addListener(wgm_custom_marker_1, 'click', function () {\r\n                                        var wgm_target = '_self';\r\n                                        if (wgm_marker.marker_link_new_tab === '1') {\r\n                                            wgm_target = '_blank';\r\n                                        }\r\n                                        window.open(wgm_marker.marker_link, wgm_target);\r\n                                    });\r\n                                }\r\n                            });\r\n                        }\r\n                    });\r\n                });\r\n\r\n            <\/script>\r\n\r\n            <div id=\"srm_gmp_embed_1\"\r\n                 style=\"width:100% !important;height:300px  !important; \">\r\n            <\/div>\r\n                    <\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>En esta secci\u00f3n se visualizan los puntos de investigaci\u00f3n de las diferentes especies en la Rep\u00fablica de Panam\u00e1<\/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:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/pages\/229"}],"collection":[{"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":14,"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/pages\/229\/revisions"}],"predecessor-version":[{"id":365,"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/pages\/229\/revisions\/365"}],"wp:attachment":[{"href":"https:\/\/portal.seccimbio.com\/cms\/wp-json\/wp\/v2\/media?parent=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}