<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Infinity Extension &amp;gt; SD-WAN &amp;gt; Geo map in Infinity Portal Extensions</title>
    <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173805#M4</link>
    <description>&lt;P&gt;Looks nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; !&lt;BR /&gt;Very sad that the community must provide major basics...&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 09:16:53 GMT</pubDate>
    <dc:creator>D_W</dc:creator>
    <dc:date>2023-03-07T09:16:53Z</dc:date>
    <item>
      <title>Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173596#M1</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":1st_place_medal:"&gt;🥇&lt;/span&gt;&amp;nbsp;1st Infinity Portal extension&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;Endorsed by SD-WAN product managers&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Infinity Portal Extension to visualize SD-WAN sites on a world map.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;SD-WAN agents&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://portal.checkpoint.com/dashboard/sd-wan#/sd-wan-network/agents" target="_self"&gt;https://portal.checkpoint.com/dashboard/sd-wan#/sd-wan-network/agents&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;Extension code&lt;/H3&gt;
&lt;H5&gt;Copy the code below into the address field of a new bookmark. Click it to enable the map.&lt;/H5&gt;
&lt;PRE class="code-preview_dark__v9aBF" tabindex="0" data-testid="code-preview-text-area"&gt;javascript&lt;SPAN&gt;:&lt;/SPAN&gt;(()=&amp;gt;{if(null!==document.getElementById("_map"))return;function e(){let e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css",e.crossorigin="",document.head.appendChild(e);let t=document.createElement("script");t.type="text/javascript",t.src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js",t.crossorigin="",document.head.appendChild(t)}function t(){e();let t=document.createElement("a");t.id="_map",t.href="#",t.role="tab",t.dataset.rbEventKey="geomap",["cp-tab-header","nav-link"].forEach(e=&amp;gt;t.classList.add(e));let r=document.createElement("span");r.classList.add("content");let s=document.createElement("span");s.classList.add("title"),s.title="geo map",s.innerText="geo map",r.appendChild(s),t.appendChild(r);let l=document.querySelector(".cp-tabs-list.nav .row");l.append(t);let n=document.querySelector(".cp-tab-content.tab-content"),c=document.createElement("div");c.role="tabpanel",c.ariaHidden="true",["fade","cp-tabs-pane","tab-pane"].forEach(e=&amp;gt;c.classList.add(e)),c.style.padding="10px",n.append(c);let o=l.querySelector(".cp-tab-header.active"),d=n.querySelector(".cp-tabs-pane.active.show");function p(){t.classList.remove("active"),t.ariaSelected="false",c.classList.remove("active"),c.classList.remove("show"),c.ariaHidden="true",o.classList.add("active"),o.ariaSelected="true",d.classList.add("active"),d.classList.add("show"),d.ariaHdden="false"}p();let h=document.querySelector(".rdg.cp-grid.entities-table"),m=h.querySelector('.rdg-row[aria-selected="true"]')?.ariaRowIndex;h.addEventListener("click",e=&amp;gt;{if(e.target.classList.contains("rdg-cell")&amp;amp;&amp;amp;e.target.parentElement.ariaRowIndex!==m){let a="true"===t.ariaSelected;p(),m=e.target.ariaRowIndex,setImmediate(()=&amp;gt;l.append(t),1),a&amp;amp;&amp;amp;setImmediate(()=&amp;gt;g(),1)}});let f=document.createElement("div");function g(){function e(t){t.preventDefault(),p(),o.removeEventListener("click",e)}o=l.querySelector(".active"),d=n.querySelector(".cp-tabs-pane.active.show"),l.querySelectorAll(".cp-tab-header").forEach(e=&amp;gt;e.classList.remove("active")),l.querySelectorAll(".cp-tab-header").forEach(e=&amp;gt;e.ariaSelected="false"),n.querySelectorAll(".cp-tabs-pane").forEach(e=&amp;gt;{e.classList.remove("active"),e.classList.remove("show"),e.ariaHidden="true"}),t.classList.add("active"),t.ariaSelected="true",c.classList.add("active"),c.classList.add("show"),c.ariaHidden="false",o.addEventListener("click",e,{once:!0})}f.style.width="100%",f.style.height="100%",f.style["flex-shrink"]="0",c.append(f),i().then(async e=&amp;gt;{for(;!window.L;)await new Promise(e=&amp;gt;setTimeout(e,50));let t=L.map(f,{maxZoom:19}).setView([0,0],0);L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:""}).addTo(t);let r=new ResizeObserver(()=&amp;gt;t.invalidateSize());r.observe(f);let i=await Promise.allSettled(e.map(async({ip:e,name:t})=&amp;gt;({...await a(e),ip:e,name:t}))).then(e=&amp;gt;e.filter(e=&amp;gt;"fulfilled"===e.status).map(e=&amp;gt;e.value)),s=[];for(let l of i){let{name:n,ip:c,lat:o,lon:d}=l,p=L.marker([o,d]).addTo(t),h=`&amp;lt;p&amp;gt;IP: ${c}, Name: ${n??"N/A"}&amp;lt;/p&amp;gt;`;p.bindPopup(h),p.bindTooltip(h),s.push(p)}}),t.addEventListener("click",e=&amp;gt;{e.preventDefault(),g()}),g()}function a(e){return fetch(`https://ipinfo.io/${encodeURIComponent(e)}`,{headers:{Accept:"application/json"}}).then(e=&amp;gt;e.json()).then(e=&amp;gt;[e,e.loc.split(",").map(e=&amp;gt;parseFloat(e))]).then(([e,[t,a]])=&amp;gt;({...e,lat:t,lon:a}))}let r={operationName:"Agents",variables:{matchSearch:[""],filters:{status:["Connected"]},paging:{offset:0,limit:50},sortBy:{field:"name",order:"ascending"}},query:"query Agents($matchSearch:[String],$filters:AgentsFilter,$paging:Paging,$sortBy:SortBy){getAgents(matchSearch:$matchSearch,filters:$filters,paging:$paging,sortBy:$sortBy){id,name,... on TokenAgent {ip}}}"};async function i(){let e=window?.localStorage?.csrf,t="";if(!e){alert("There is no access-token, please try to reload the page.");return}try{t=await (await fetch("https://cloudinfra-gw.portal.checkpoint.com/app/sd-wan/graphql",{headers:{"content-type":"application/json","x-access-token":e},body:JSON.stringify(r),method:"POST",credentials:"include"})).json()}catch(a){console.log(a)}return t?.data?.getAgents?.map(e=&amp;gt;({ip:`${e.ip}`||"",name:`${e.name}`||""}))??[]}t()})();&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 06:31:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173596#M1</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-03-07T06:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173599#M2</link>
      <description>&lt;P&gt;Looking good!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 13:05:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173599#M2</guid>
      <dc:creator>Ofer_Raz</dc:creator>
      <dc:date>2023-03-05T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173654#M3</link>
      <description>&lt;P&gt;Very nice,&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 09:40:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173654#M3</guid>
      <dc:creator>AmirArama</dc:creator>
      <dc:date>2023-03-06T09:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173805#M4</link>
      <description>&lt;P&gt;Looks nice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; !&lt;BR /&gt;Very sad that the community must provide major basics...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 09:16:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173805#M4</guid>
      <dc:creator>D_W</dc:creator>
      <dc:date>2023-03-07T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173810#M5</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/17503"&gt;@D_W&lt;/a&gt;: I'm glad that you like it.&lt;BR /&gt;This is a new product Check Point is still making better for us. I'm positive that they'll offer a built-in geo map in the future as well. In the meantime this community is here to help the vendor getting the product out of the envelope. Which is cool. I see myself as an enabler and I'm thankful that Check Point provides me with this opportunity here in their Toolbox.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 18:05:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/173810#M5</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2023-03-09T18:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/174057#M6</link>
      <description>&lt;P&gt;Cool &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice work, once more!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:37:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/174057#M6</guid>
      <dc:creator>Pedro_Boavida</dc:creator>
      <dc:date>2023-03-08T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Extension &gt; SD-WAN &gt; Geo map</title>
      <link>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/175620#M7</link>
      <description>&lt;P&gt;Very good visualization of appliances that has or not SD Wan activated and what profiles are applied into only one local.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:58:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Infinity-Portal-Extensions/Infinity-Extension-gt-SD-WAN-gt-Geo-map/m-p/175620#M7</guid>
      <dc:creator>ic3w4Il</dc:creator>
      <dc:date>2023-03-21T17:58:49Z</dc:date>
    </item>
  </channel>
</rss>

