{"id":17083,"date":"2026-09-09T10:39:33","date_gmt":"2026-09-09T17:39:33","guid":{"rendered":"https:\/\/iamsa.com.mx\/?page_id=17083"},"modified":"2026-09-09T16:12:39","modified_gmt":"2026-09-09T23:12:39","slug":"map-test","status":"publish","type":"page","link":"https:\/\/iamsa.com.mx\/zh\/map-test\/","title":{"rendered":"Map test"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"17083\" class=\"elementor elementor-17083\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e5c5db9 e-con-full e-flex e-con e-parent\" data-id=\"e5c5db9\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bc5ffc2 elementor-widget elementor-widget-html\" data-id=\"bc5ffc2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n.mapboxgl-ctrl.iamsa-satellite-control button {\n  width: auto;\n  min-width: 106px;\n  height: 42px;\n  padding: 0 16px;\n  border: 0;\n  border-radius: 4px;\n  background: #fff;\n  color: #172b3a;\n  font: 600 14px\/1.2 Arial, sans-serif;\n  cursor: pointer;\n}\n.mapboxgl-ctrl.iamsa-satellite-control button:hover {\n  background: #f0f3f5;\n}\n.mapboxgl-ctrl.iamsa-satellite-control button:focus-visible {\n  outline: 3px solid #1479c9;\n  outline-offset: 2px;\n}\n<\/style>\n\n<script>\n(function () {\n  'use strict';\n\n  const selector =\n    '.elementor-element-85849e1 .jet-map-listing.mapbox-provider';\n  const sourceId = 'iamsa-satellite-source';\n  const layerId = 'iamsa-satellite-layer';\n  let attempts = 0;\n\n  function install() {\n    const element = document.querySelector(selector);\n    const map = element && window.jQuery &&\n      window.jQuery(element).data('mapInstance');\n\n    if (!map || !map.isStyleLoaded()) {\n      if (++attempts < 120) {\n        window.setTimeout(install, 250);\n      }\n      return;\n    }\n\n    if (map.__iamsaSatelliteControl) return;\n\n    let active = false;\n    const container = document.createElement('div');\n    container.className =\n      'mapboxgl-ctrl mapboxgl-ctrl-group iamsa-satellite-control';\n\n    const button = document.createElement('button');\n    button.type = 'button';\n    container.appendChild(button);\n\n    function updateButton() {\n      button.textContent = active ? 'Mapa' : 'Sat\u00e9lite';\n      button.title = active\n        ? 'Volver al mapa original'\n        : 'Ver imagen satelital';\n      button.setAttribute('aria-label', 'Vista satelital');\n      button.setAttribute('aria-pressed', String(active));\n    }\n\n    function ensureLayer() {\n      if (!map.getSource(sourceId)) {\n        map.addSource(sourceId, {\n          type: 'raster',\n          url: 'mapbox:\/\/mapbox.satellite',\n          tileSize: 256\n        });\n      }\n\n      if (!map.getLayer(layerId)) {\n        const firstClusterLayer = map.getStyle().layers.find(\n          function (layer) {\n            return layer.source === 'markerClusters';\n          }\n        );\n\n        map.addLayer({\n          id: layerId,\n          type: 'raster',\n          source: sourceId,\n          layout: { visibility: 'none' },\n          paint: { 'raster-opacity': 1 }\n        }, firstClusterLayer ? firstClusterLayer.id : undefined);\n      }\n    }\n\n    button.addEventListener('click', function (event) {\n      event.preventDefault();\n      event.stopPropagation();\n\n      if (!map.isStyleLoaded()) return;\n\n      try {\n        ensureLayer();\n        const next = !active;\n\n        map.setLayoutProperty(\n          layerId,\n          'visibility',\n          next ? 'visible' : 'none'\n        );\n\n        active = next;\n        updateButton();\n      } catch (error) {\n        button.title =\n          'No se pudo cambiar la vista. Intenta nuevamente.';\n        console.error('Bot\u00f3n satelital IAMSA:', error);\n      }\n    });\n\n    updateButton();\n\n    const control = {\n      onAdd: function () {\n        return container;\n      },\n      onRemove: function () {\n        container.remove();\n        delete map.__iamsaSatelliteControl;\n      }\n    };\n\n    map.addControl(control, 'top-left');\n    map.__iamsaSatelliteControl = control;\n  }\n\n  install();\n})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8a0194a elementor-widget elementor-widget-html\" data-id=\"8a0194a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\n(function () {\n  const selector = '.elementor-element-9ed7b6c .jet-map-listing.mapbox-provider';\n  const lat = 29.0755064; \n  const lng = -111.0793845;\n  const zoom = 12;\n  let attempts = 0;\n\n  function retry() {\n    if (++attempts < 120) setTimeout(init, 250);\n  }\n\n  function init() {\n    if (!window.jQuery) return retry();\n\n    const element = window.jQuery(selector);\n    if (!element.length) return retry();\n\n    const settings = element.data('general');\n    if (settings) {\n      settings.autoCenter = false;\n      settings.customCenter = { lat: lat, lng: lng };\n      settings.customZoom = zoom;\n    }\n\n    const map = element.data('mapInstance');\n    if (!map) return retry();\n    if (map.__iamsaMexicaliCenter) return;\n    map.__iamsaMexicaliCenter = true;\n\n    function centerMap() {\n      map.jumpTo({\n        center: [lng, lat],\n        zoom: zoom\n      });\n    }\n\n    if (map.loaded()) centerMap();\n    else map.once('load', centerMap);\n  }\n\n  init();\n})();\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-85849e1 elementor-widget elementor-widget-jet-engine-maps-listing\" data-id=\"85849e1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"jet-engine-maps-listing.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"jet-map-listing jet-listing-grid--17290 mapbox-provider\" data-init=\"{&quot;zoomControl&quot;:true,&quot;fullscreenControl&quot;:true,&quot;streetViewControl&quot;:true,&quot;mapTypeControl&quot;:true}\" data-markers=\"[{&quot;id&quot;:16996,&quot;latLang&quot;:{&quot;lat&quot;:&quot;29.076763&quot;,&quot;lng&quot;:&quot;-111.074491&quot;},&quot;label&quot;:false,&quot;custom_marker&quot;:false,&quot;geo_query_distance&quot;:-1}]\" data-general=\"{&quot;api&quot;:&quot;https:\\\/\\\/iamsa.com.mx\\\/zh\\\/wp-json\\\/jet-engine\\\/v2\\\/get-map-marker-info\\\/&quot;,&quot;restNonce&quot;:&quot;8543b7fbba&quot;,&quot;listingID&quot;:17290,&quot;source&quot;:&quot;posts&quot;,&quot;width&quot;:300,&quot;offset&quot;:40,&quot;clustererImg&quot;:&quot;https:\\\/\\\/iamsa.com.mx\\\/wp-content\\\/plugins\\\/jet-engine\\\/includes\\\/modules\\\/maps-listings\\\/assets\\\/lib\\\/markerclustererplus\\\/img\\\/m&quot;,&quot;marker&quot;:{&quot;type&quot;:&quot;icon&quot;,&quot;html&quot;:&quot;&lt;i class=\\&quot;jet-map-marker jet-map-marker-default apply-fill fas fa-map-marker-alt\\&quot; aria-hidden=\\&quot;true\\&quot;&gt;&lt;\\\/i&gt;&quot;},&quot;autoCenter&quot;:false,&quot;maxZoom&quot;:16,&quot;minZoom&quot;:9,&quot;customCenter&quot;:false,&quot;customZoom&quot;:15,&quot;popupPreloader&quot;:false,&quot;querySeparator&quot;:&quot;?&quot;,&quot;markerClustering&quot;:true,&quot;customClusterImg&quot;:[],&quot;clusterMaxZoom&quot;:&quot;&quot;,&quot;clusterRadius&quot;:&quot;&quot;,&quot;popupOpenOn&quot;:&quot;click&quot;,&quot;centeringOnOpen&quot;:false,&quot;zoomOnOpen&quot;:false,&quot;advanced&quot;:{&quot;zoom_control&quot;:&quot;auto&quot;,&quot;scrollwheel&quot;:false},&quot;user_location_enabled&quot;:false,&quot;user_location_marker&quot;:false,&quot;user_location_label&quot;:&quot;&quot;,&quot;queryID&quot;:4,&quot;querySignature&quot;:&quot;f2ee671bf8157d776cf2fe825ebf4ba7f6e224fa5cef2018ef5328d7c1e00312&quot;,&quot;styles&quot;:&quot;mapbox:\\\/\\\/styles\\\/layla27\\\/clhjbs50400k001pogppueq9u&quot;}\" data-listing-source=\"query\" data-query-id=\"4\" data-queried-id=\"17083|WP_Post\"><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-17083","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Map test - IAMSA<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iamsa.com.mx\/zh\/map-test\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Map test - IAMSA\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iamsa.com.mx\/zh\/map-test\/\" \/>\n<meta property=\"og:site_name\" content=\"IAMSA\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-09T23:12:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/iamsa.com.mx\\\/map-test\\\/\",\"url\":\"https:\\\/\\\/iamsa.com.mx\\\/map-test\\\/\",\"name\":\"Map test - IAMSA\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/iamsa.com.mx\\\/#website\"},\"datePublished\":\"2026-09-09T17:39:33+00:00\",\"dateModified\":\"2026-09-09T23:12:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/iamsa.com.mx\\\/map-test\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/iamsa.com.mx\\\/map-test\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/iamsa.com.mx\\\/map-test\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/iamsa.com.mx\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Map test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/iamsa.com.mx\\\/#website\",\"url\":\"https:\\\/\\\/iamsa.com.mx\\\/\",\"name\":\"IAMSA\",\"description\":\"Development Group\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/iamsa.com.mx\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Map test - IAMSA","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iamsa.com.mx\/zh\/map-test\/","og_locale":"zh_CN","og_type":"article","og_title":"Map test - IAMSA","og_url":"https:\/\/iamsa.com.mx\/zh\/map-test\/","og_site_name":"IAMSA","article_modified_time":"2026-09-09T23:12:39+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iamsa.com.mx\/map-test\/","url":"https:\/\/iamsa.com.mx\/map-test\/","name":"Map test - IAMSA","isPartOf":{"@id":"https:\/\/iamsa.com.mx\/#website"},"datePublished":"2026-09-09T17:39:33+00:00","dateModified":"2026-09-09T23:12:39+00:00","breadcrumb":{"@id":"https:\/\/iamsa.com.mx\/map-test\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iamsa.com.mx\/map-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iamsa.com.mx\/map-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iamsa.com.mx\/"},{"@type":"ListItem","position":2,"name":"Map test"}]},{"@type":"WebSite","@id":"https:\/\/iamsa.com.mx\/#website","url":"https:\/\/iamsa.com.mx\/","name":"IAMSA","description":"Development Group","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iamsa.com.mx\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"}]}},"_links":{"self":[{"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/pages\/17083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/comments?post=17083"}],"version-history":[{"count":32,"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/pages\/17083\/revisions"}],"predecessor-version":[{"id":17378,"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/pages\/17083\/revisions\/17378"}],"wp:attachment":[{"href":"https:\/\/iamsa.com.mx\/zh\/wp-json\/wp\/v2\/media?parent=17083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}