{"id":358,"date":"2024-05-28T22:08:07","date_gmt":"2024-05-29T02:08:07","guid":{"rendered":"https:\/\/www.prosalud.org\/?page_id=358"},"modified":"2024-05-28T22:11:34","modified_gmt":"2024-05-29T02:11:34","slug":"nuestras-ubicaciones","status":"publish","type":"page","link":"https:\/\/www.prosalud.org\/?page_id=358","title":{"rendered":"Nuestras Ubicaciones"},"content":{"rendered":"<style>\r\n\r\n#ps_map_search_clinicdetail{\r\n\tposition:relative;\r\n\tline-height: 1.4;\r\n}\r\n\r\n.psmapdetailblock{\r\n\tbackground-color:#FFF;\r\n\tborder-radius:5px;\r\n\tmin-height:150px;\r\n\tmargin-bottom:20px;\r\n\tposition:relative;\r\n\tdisplay:flex;\r\n\t    overflow: hidden;\r\n}\r\n\r\n.psmapdetailblock_title{\r\n\tbackground-color: #e0ab79;\r\n    border-radius: 5px;\r\n    color: #FFF;\r\n    display: inline-table;\r\n    min-height: 150px;\r\n    padding-top: 58px;\r\n    vertical-align: center;\r\n    width: 200px;\r\n    text-align: center;\r\n    font-size: 20px;\r\n}\r\n\r\n.psmapdetailblock_detail{\r\n\tbackground-color: #FFF;\r\n    color: #808080;\r\n    display: inline-block;\r\n    min-height: 150px;\r\n    vertical-align: top;\r\n    padding: 20px;\r\n    \/* min-width: 470px; *\/\r\n    \/* max-height: 150px; *\/\r\n    max-width: calc(100% - 203px);\r\n    border: 0px solid black;\r\n\tcolumn-count: 2;\r\n}\r\n\r\n.psmapdetailblock_title_2{\r\n    background-color: #66c1ff;\r\n}\r\n.psmapdetailblock_title_3{\r\n    background-color: #0098da;\r\n}\r\n.psmapdetailblock_title_3_more{\r\n    padding-top: 32px;\r\n}\r\n\r\n.psmapdetailblock_close{\r\n\tposition: absolute;\r\n\ttop: -1px;\r\n\tright: 0px;\r\n\tcursor:pointer;\r\n}\r\n\r\n.psmapcitiesblock{\r\n    background-color: #FFF;\r\n    border-radius: 5px;\r\n    min-height: 150px;\r\n    \/* margin-bottom: 20px; *\/\r\n    position: relative;\r\n    display: block;\r\n}\r\n.psmapcitiesblock_detail_cityname{\r\n\ttext-align: center;\r\n    border-top: 1px solid #bebfc0;\r\n    padding: 10px 0px 10px 0px;\r\n\tmargin: 0px 20px 0px 20px;\r\n\tcursor: pointer;\r\n\ttext-transform: uppercase;\r\n}\r\n.psmapcitiesblock_detail_cityname:hover{\r\n\tcolor:#e9803e;\r\n}\r\n\r\n.psmapcitiesblock_detail{\r\n    background-color: #FFF;\r\n\tborder-radius:5px;\r\n    color: #808080;\r\n    \/* display: inline-block; *\/\r\n    min-height: 150px;\r\n    vertical-align: top;\r\n    padding: 20px;\r\n    \/* min-width: 470px; *\/\r\n    \/* max-height: 150px; *\/\r\n    \/* max-width: calc(100% - 203px); *\/\r\n    border: 0px solid black;\r\n    \/* column-count: 2; *\/\r\n}\r\n\r\n.ubi_subtitle{\r\n\ttext-align: center;\r\n}\r\n.ubi_subtitle div{\r\n\ttext-align: center;\r\n}\r\n\r\n<\/style>\r\n<h1 class=\"wp-block-heading\">Nuestras Ubicaciones<\/h1>\r\n\r\n<div class=\"ubi_subtitle\">\r\n\t<\/div>\r\n\r\n\r\n<style>\r\n#map {\r\n    height: 600px; \/* The height is 400 pixels *\/\r\n    width: 100%; \/* The width is the width of the web page *\/\r\n}\r\n<\/style>\r\n\r\n<br><br>\r\n<script src=\"https:\/\/maps.google.com\/maps\/api\/js?key=AIzaSyATcviORMPnbCgIyZSALq3QE3HvEwOQtK0\" \r\n          type=\"text\/javascript\"><\/script>\r\n<div id=\"map\"><\/div>\t\t  \r\n\r\n<script type=\"text\/javascript\">\r\nlet map;\r\n\r\nvar marker = [];\r\n\r\nasync function initMap() {\r\n  \/\/ Request needed libraries.\r\n  const { Map } = await google.maps.importLibrary(\"maps\");\r\n  const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary(\r\n    \"marker\",\r\n  );\r\n\r\n  map = new google.maps.Map(document.getElementById(\"map\"), {\r\n    center: new google.maps.LatLng(-17.364557312086, -66.179146596433),\r\n    zoom: 5,\r\n    mapId: \"DEMO_MAP_ID\",\r\n  });\r\n\r\n  const iconBase =\r\n    \"images\/\";\r\n  const icons = {\r\n    prosalud: {\r\n      icon: iconBase + \"logo-mapa.png\",\r\n    }\r\n  };\r\n  const features = [\r\n  \r\n\t\r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.495970173556, -68.120983128675),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"10\",\r\n\t\t\t  prosaludname: \"CENTRO DE ESPECIALIDADES M\u00c9DICAS MIRAFLORES\",\r\n\t\t\t  prosaludcity: \"1\",\r\n\t\t\t  prosaludcityname: \"LA PAZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.534119810083, -68.076463513894),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"8\",\r\n\t\t\t  prosaludname: \"CENTRO DE SALUD ACHUMANI\",\r\n\t\t\t  prosaludcity: \"1\",\r\n\t\t\t  prosaludcityname: \"LA PAZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.526144316918, -68.173070503177),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"13\",\r\n\t\t\t  prosaludname: \"CENTRO DE SALUD VILLA BOLIVAR\",\r\n\t\t\t  prosaludcity: \"5\",\r\n\t\t\t  prosaludcityname: \"EL ALTO\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-21.532371053445, -64.736856338772),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"14\",\r\n\t\t\t  prosaludname: \"CENTRO PROSALUD EL MOLINO\",\r\n\t\t\t  prosaludcity: \"6\",\r\n\t\t\t  prosaludcityname: \"TARIJA\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.500987790124, -68.171273146356),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"12\",\r\n\t\t\t  prosaludname: \"CL\u00cdNICA 16 DE JULIO EL ALTO\",\r\n\t\t\t  prosaludcity: \"5\",\r\n\t\t\t  prosaludcityname: \"EL ALTO\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.498428357541, -68.120697819149),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"11\",\r\n\t\t\t  prosaludname: \"CL\u00cdNICA LA PAZ\",\r\n\t\t\t  prosaludcity: \"1\",\r\n\t\t\t  prosaludcityname: \"LA PAZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.364557312086, -66.179146596433),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"16\",\r\n\t\t\t  prosaludname: \"CL\u00cdNICA PROSALUD NORTE\",\r\n\t\t\t  prosaludcity: \"3\",\r\n\t\t\t  prosaludcityname: \"COCHABAMBA\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.766776097521, -63.170218474328),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"1\",\r\n\t\t\t  prosaludname: \"CL\u00cdNICA PROSALUD\u00a0SANTA\u00a0CRUZ\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-21.538577931562, -64.745791701976),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"18\",\r\n\t\t\t  prosaludname: \"CL\u00cdNICA PROSALUD TABLADITA\",\r\n\t\t\t  prosaludcity: \"6\",\r\n\t\t\t  prosaludcityname: \"TARIJA\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-16.502271784607, -68.166929561746),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"9\",\r\n\t\t\t  prosaludname: \"CONSULTORIO M\u00c9DICO 16 DE JULIO EL ALTO\",\r\n\t\t\t  prosaludcity: \"5\",\r\n\t\t\t  prosaludcityname: \"EL ALTO\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.80357733462, -63.190679658369),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"2\",\r\n\t\t\t  prosaludname: \"EL CARMEN\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.796891815227, -63.166381413848),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"3\",\r\n\t\t\t  prosaludname: \"ISMAEL SUAREZ\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.818301075985, -63.202086018975),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"5\",\r\n\t\t\t  prosaludname: \"LA CUCHILLA\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.815979276738, -63.179870811457),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"7\",\r\n\t\t\t  prosaludname: \"LA MORITA\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.861450036383, -63.172277511529),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"6\",\r\n\t\t\t  prosaludname: \"LOS LOTES\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.775377, -63.155119),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"17\",\r\n\t\t\t  prosaludname: \"OFICINA CENTRAL\",\r\n\t\t\t  prosaludcity: \"7\",\r\n\t\t\t  prosaludcityname: \"OFICINA CENTRAL\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-21.538664750559, -64.725692774539),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"19\",\r\n\t\t\t  prosaludname: \"POLICONSULTORIO PROSALUD TARIJA\",\r\n\t\t\t  prosaludcity: \"6\",\r\n\t\t\t  prosaludcityname: \"TARIJA\",\r\n\t\t\t},\t\t   \r\n\t\t   \r\n\t\t   {\r\n\t\t\t  position: new google.maps.LatLng(-17.60676504621, -63.153046297615),\r\n\t\t\t  type: \"prosalud\",\r\n\t\t\t  prosaludID: \"4\",\r\n\t\t\t  prosaludname: \"SAT\u00c9LITE NORTE\",\r\n\t\t\t  prosaludcity: \"2\",\r\n\t\t\t  prosaludcityname: \"SANTA CRUZ\",\r\n\t\t\t},\t\t   \r\n\t\t     ];\r\n\r\n\r\n  for (let i = 0; i < features.length; i++) {\r\n    const iconImage = document.createElement(\"img\");\r\n\r\n    iconImage.src = icons[features[i].type].icon;\r\n\r\n    marker[i] = new google.maps.marker.AdvancedMarkerElement({\r\n      map,\r\n      position: features[i].position,\r\n      content: iconImage,\r\n    });\r\n\t\r\n\tgoogle.maps.event.addListener(marker[i], 'click', function() {\r\n\t\t\tconsole.log(features[i].prosaludID);\r\n\t\t\tconsole.log(features[i].prosaludname);\r\n\t\t\tsetclickID(features[i].prosaludID);\r\n\t\t\t\r\n\t\t});\r\n\tconsole.log(marker[i]);\r\n  }\r\n  return map;\r\n}\r\n\r\nmap = initMap();\r\n\r\nvar markercity = [];\r\nmarkercity[0] = '1';markercity[1] = '1';markercity[2] = '5';markercity[3] = '6';markercity[4] = '5';markercity[5] = '1';markercity[6] = '3';markercity[7] = '2';markercity[8] = '6';markercity[9] = '5';markercity[10] = '2';markercity[11] = '2';markercity[12] = '2';markercity[13] = '2';markercity[14] = '2';markercity[15] = '7';markercity[16] = '6';markercity[17] = '2';var markercitycenter = [];\r\nmarkercitycenter[1] = new google.maps.LatLng(-16.495970173556, -68.120983128675);markercitycenter[5] = new google.maps.LatLng(-16.526144316918, -68.173070503177);markercitycenter[6] = new google.maps.LatLng(-21.532371053445, -64.736856338772);markercitycenter[3] = new google.maps.LatLng(-17.364557312086, -66.179146596433);markercitycenter[2] = new google.maps.LatLng(-17.766776097521, -63.170218474328);markercitycenter[7] = new google.maps.LatLng(-17.775377, -63.155119);\r\n  <\/script>\r\n  \r\n  \r\n  \r\n  <br><Br><Br><form>\r\n  <div class=\"ps_map_search\">\r\n\t<input type=text placeholder=\"Seleccione un centro de atenci\u00f3n\" class=\"ps_map_search_input\" id='ps_map_search_input'><br>\r\n\t<div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='2'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(2);' name='mapcityfilterradio'>SANTA CRUZ<\/nobr><\/div><div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='1'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(1);' name='mapcityfilterradio'>LA PAZ<\/nobr><\/div><div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='5'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(5);' name='mapcityfilterradio'>EL ALTO<\/nobr><\/div><div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='3'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(3);' name='mapcityfilterradio'>COCHABAMBA<\/nobr><\/div><div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='7'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(7);' name='mapcityfilterradio'>OFICINA CENTRAL<\/nobr><\/div><div class='ps_map_search_checkboxdiv'><nobr><input type=radio value='6'  class='pm_city_checkbox ps_map_search_checkbox' onclick='prosaludmap_citytoggle();prosalud_showcity(6);' name='mapcityfilterradio'>TARIJA<\/nobr><\/div>\t<\/form>\r\n\t<div id=\"ps_map_search_clinicdetail\" style=\"display:none\">\r\n\t<\/div>\r\n  <\/div>\r\n \r\n<style>\r\n.ps_map_search\r\n{\r\n\tbackground-color: rgba(201,202,211,0.8);\r\n    border-radius: 5px;\r\n    max-width: 550px;\r\n    font-size: 12px;\r\n    padding: 20px;\r\n\t\/*margin:0 auto;*\/\r\n\tposition: relative;\r\n    top: -672px;\r\n\tbox-shadow: 2.9px 5.8px 5.8px hsl(0deg 0% 0% \/ 0.41);\t\r\n}\r\n.ps_map_search_input\r\n{\r\n    width: 100%;\r\n    height: 40px;\r\n    padding: 5px;\r\n    border: 0px;\r\n    text-align: center;\r\n    color: #004584;\r\n    font-weight: bold;\r\n    font-size: 18px;\r\n\tborder-radius:7px;\t\r\n}\t\r\n.ps_map_search_checkboxdiv\r\n{\r\n\tdisplay: inline-table;\r\n    margin-right: 5px;\r\n}\r\n.ps_map_search_checkbox\r\n{\r\n\tborder:0px;\r\n\tmargin-right:3px;\r\n}\r\n<\/style>\r\n \r\n <script>\r\n function prosaludmap_citytoggle()\r\n {\r\n\t jQuery(\".pm_city_checkbox\").each(function(i, obj) {\r\n\tvar curval = jQuery(obj).val();\r\n\t\tif(jQuery(obj).prop('checked'))\r\n\t\t{\r\n\t\t\tmap.setCenter(markercitycenter[curval]);\r\n\t\t\tfor (let i = 0; i < markercity.length; i++) \r\n\t\t\t{\r\n\t\t\t\tif(markercity[i]==curval)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif(marker[i].map==null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t marker[i].map  = map;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}else{\r\n\t\t\tfor (let i = 0; i < markercity.length; i++) \r\n\t\t\t{\r\n\t\t\t\tif(markercity[i]==curval)\r\n\t\t\t\t{\r\n\t\t\t\t\t marker[i].map  = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\tmap.setZoom(11);\r\n }\r\n \r\nvar clickID=\"\";\r\nfunction setclickID(curclickID)\r\n{\r\n\t\/\/alert(jQuery(\"#inputcenter\").val());\r\n\tjQuery.get('_getclinicmap.php', { clinicID: curclickID, ubimode: 'clinicas'}, \r\n\t\tfunction(returnedData){\r\n\t\t\t \/\/console.log(returnedData);\r\n\t\t\t jQuery(\"#ps_map_search_clinicdetail\").html(returnedData);\r\n\t\t\t jQuery(\"#ps_map_search_clinicdetail\").slideDown();\r\n\t\t\t \r\n\t\t\t jQuery(\"#ps_map_search_input\").val(jQuery(\"#clinicname\").html().toUpperCase());\r\n\r\n\t}).fail(function(){\r\n\t\t  console.log(\"error\");\r\n\t});\r\n\tconsole.log(\"sdfsdf\");\r\n\tjQuery(\"#menu-item-419 > a\").style = \"background-color:#70afcf !important;color:#FFF !important;\";\r\n\tconsole.log(\"sdfsdf\");\r\n}\r\n\r\nfunction prosalud_showcity(curcity)\r\n{\r\n\tjQuery(\"#ps_map_search_input\").val(\"\");\r\n\tjQuery.get('_getcliniclistbycity.php', { cityID: curcity, ubimode: 'clinicas'}, \r\n\t\tfunction(returnedData){\r\n\t\t\t \/\/console.log(returnedData);\r\n\t\t\t jQuery(\"#ps_map_search_clinicdetail\").html(returnedData);\r\n\t\t\t jQuery(\"#ps_map_search_clinicdetail\").slideDown();\r\n\r\n\t}).fail(function(){\r\n\t\t  console.log(\"error\");\r\n\t});\t\r\n}\r\n\r\nfunction closemapdetail()\r\n{\r\n\tjQuery(\"#ps_map_search_clinicdetail\").slideUp();\r\n\tjQuery(\"#ps_map_search_clinicdetail\").html(\"\");\r\n}\r\n\r\n\r\n \r\n <\/script>\r\n <br><br>\r\n \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":161,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"class_list":["post-358","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/pages\/358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prosalud.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=358"}],"version-history":[{"count":2,"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/pages\/358\/revisions"}],"predecessor-version":[{"id":361,"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/pages\/358\/revisions\/361"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.prosalud.org\/index.php?rest_route=\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/www.prosalud.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}