<?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: Missile map Change of starting point in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502407#M61839</link>
    <description>&lt;P&gt;As Luke said the issue is related to the underlying javascript leaflet this visualisation uses.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/lit-forest/leaflet.migrationLayer/blob/master/README.md"&gt;https://github.com/lit-forest/leaflet.migrationLayer/blob/master/README.md&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Similar issue with solution - &lt;A href="https://github.com/Leaflet/Leaflet/issues/82"&gt;https://github.com/Leaflet/Leaflet/issues/82&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Tweaking your negative longitudes should resolve it for you like this example below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval start_lat=47.67, start_lon=-122.34, end_lat=37, end_lon=126 
| eval start_lon = if (start_lon &amp;lt; 0, 360+start_lon,start_lon) 
| append 
    [| makeresults 
    | eval start_lat=60.69, start_lon=140.68, end_lat=37, end_lon=126 
    | eval start_lon = if (start_lon &amp;lt; 0, 360+start_lon,start_lon)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://imgur.com/1cV5RCr"&gt;https://imgur.com/1cV5RCr&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Edit: It looks like this fix breaks other arrows. You could do a much more complex fix by working out the 360 degree adjusted coordinates and the normal coordinates. Detemine the distance between both and the intended destination and pick the shortest one.&lt;/P&gt;

&lt;P&gt;Example on how to calculate distances can be found here - &lt;A href="https://answers.splunk.com/answers/752171/distance-between-two-geocoordinates.html#answer-752516"&gt;https://answers.splunk.com/answers/752171/distance-between-two-geocoordinates.html#answer-752516&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 23:08:23 GMT</pubDate>
    <dc:creator>cameronjust</dc:creator>
    <dc:date>2020-03-23T23:08:23Z</dc:date>
    <item>
      <title>Missile map Change of starting point</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502405#M61837</link>
      <description>&lt;P&gt;How can I change the starting point?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Current&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8601iE880C659C41E0839/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;How can I express it like this?&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8602i95AB95A9AD6A3CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502405#M61837</guid>
      <dc:creator>spl109</dc:creator>
      <dc:date>2020-03-23T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Missile map Change of starting point</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502406#M61838</link>
      <description>&lt;P&gt;I think that this is due to the way that Leaflet.js (an underlying library for this viz) handles lines that cross the date line. It will generally go the long way around rather than cross the date line.&lt;/P&gt;

&lt;P&gt;There's a workaround presented here: &lt;A href="https://github.com/Leaflet/Leaflet/issues/82"&gt;https://github.com/Leaflet/Leaflet/issues/82&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'll have to spend some time trying to figure out how that workaround could be applied in the context of this Splunk viz. I'll try have a go at this on the weekend and report back.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502406#M61838</guid>
      <dc:creator>luke_monahan</dc:creator>
      <dc:date>2020-03-23T23:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missile map Change of starting point</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502407#M61839</link>
      <description>&lt;P&gt;As Luke said the issue is related to the underlying javascript leaflet this visualisation uses.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/lit-forest/leaflet.migrationLayer/blob/master/README.md"&gt;https://github.com/lit-forest/leaflet.migrationLayer/blob/master/README.md&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Similar issue with solution - &lt;A href="https://github.com/Leaflet/Leaflet/issues/82"&gt;https://github.com/Leaflet/Leaflet/issues/82&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Tweaking your negative longitudes should resolve it for you like this example below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval start_lat=47.67, start_lon=-122.34, end_lat=37, end_lon=126 
| eval start_lon = if (start_lon &amp;lt; 0, 360+start_lon,start_lon) 
| append 
    [| makeresults 
    | eval start_lat=60.69, start_lon=140.68, end_lat=37, end_lon=126 
    | eval start_lon = if (start_lon &amp;lt; 0, 360+start_lon,start_lon)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://imgur.com/1cV5RCr"&gt;https://imgur.com/1cV5RCr&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Edit: It looks like this fix breaks other arrows. You could do a much more complex fix by working out the 360 degree adjusted coordinates and the normal coordinates. Detemine the distance between both and the intended destination and pick the shortest one.&lt;/P&gt;

&lt;P&gt;Example on how to calculate distances can be found here - &lt;A href="https://answers.splunk.com/answers/752171/distance-between-two-geocoordinates.html#answer-752516"&gt;https://answers.splunk.com/answers/752171/distance-between-two-geocoordinates.html#answer-752516&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missile-map-Change-of-starting-point/m-p/502407#M61839</guid>
      <dc:creator>cameronjust</dc:creator>
      <dc:date>2020-03-23T23:08:23Z</dc:date>
    </item>
  </channel>
</rss>

