<?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: Can map visualizations' latitude, longitude, and zoom respond and adapt to the resultset returned, or on click of a button for a certain region?? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236650#M14703</link>
    <description>&lt;P&gt;No, that's not possible right now&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 17:56:12 GMT</pubDate>
    <dc:creator>mporath_splunk</dc:creator>
    <dc:date>2015-11-17T17:56:12Z</dc:date>
    <item>
      <title>Can map visualizations' latitude, longitude, and zoom respond and adapt to the resultset returned, or on click of a button for a certain region??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236647#M14700</link>
      <description>&lt;P&gt;Can I have a USA button and a China button that moves and zooms the map?&lt;BR /&gt;
Can the map move to China if the resultset shows China? Can the map move to USA if the resultset shows USA? Can the move and zoom include China, USA, and Pacific Ocean if the resultset shows both China and USA?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236647#M14700</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-11-16T15:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can map visualizations' latitude, longitude, and zoom respond and adapt to the resultset returned, or on click of a button for a certain region??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236648#M14701</link>
      <description>&lt;P&gt;You can do all of that with the dashboard Link Switcher capabilities: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;For manual country switching&lt;/STRONG&gt;&lt;BR /&gt;
 - Create a form element  with your countries&lt;BR /&gt;
 - Setup a link switcher like the one below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Test switcher&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="radio" token="country"&amp;gt;
      &amp;lt;label&amp;gt;Country&amp;lt;/label&amp;gt;
      &amp;lt;choice value="China"&amp;gt;China&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="US"&amp;gt;US&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;China&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="China"&amp;gt;
          &amp;lt;set token="showChina"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;unset token="showUs"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="US"&amp;gt;
          &amp;lt;unset token="showChina"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;set token="showUs"&amp;gt;true&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Current Country&amp;lt;/title&amp;gt;
      &amp;lt;map depends="$showUs$"&amp;gt;
        &amp;lt;title&amp;gt;$country$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;lat lon | head 1000 | lookup geo_countries longitude AS lon, latitude AS lat | stats count by featureId | geom geo_countries&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
            &amp;lt;option name="mapping.map.center"&amp;gt;(37.3,-81.65)&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.panning"&amp;gt;true&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.scrollZoom"&amp;gt;false&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.zoom"&amp;gt;4&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.type"&amp;gt;choropleth&amp;lt;/option&amp;gt;
            &amp;lt;option name="drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
      &amp;lt;map depends="$showChina$"&amp;gt;
        &amp;lt;title&amp;gt;$country$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;lat lon | head 1000 | lookup geo_countries longitude AS lon, latitude AS lat | stats count by featureId | geom geo_countries&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
            &amp;lt;option name="mapping.map.center"&amp;gt;(32.32,103.62)&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.panning"&amp;gt;1&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.scrollZoom"&amp;gt;0&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.map.zoom"&amp;gt;4&amp;lt;/option&amp;gt;
            &amp;lt;option name="mapping.type"&amp;gt;choropleth&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;For automatic country switching&lt;/STRONG&gt;&lt;BR /&gt;
Similar as above. Take a look at the "Null search swapper" example in the &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk 6.x Dashboard Examples&lt;/A&gt; app to switch based on the search result&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 19:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236648#M14701</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-11-16T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can map visualizations' latitude, longitude, and zoom respond and adapt to the resultset returned, or on click of a button for a certain region??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236649#M14702</link>
      <description>&lt;P&gt;Can I compute the minimum bounding box dynamically from the resultset w/o hardcoding the coordinates and zoom of China and USA? My number of shapes way more than 2. I have custom maps and tile servers. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 11:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236649#M14702</guid>
      <dc:creator>hylam</dc:creator>
      <dc:date>2015-11-17T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can map visualizations' latitude, longitude, and zoom respond and adapt to the resultset returned, or on click of a button for a certain region??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236650#M14703</link>
      <description>&lt;P&gt;No, that's not possible right now&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 17:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-map-visualizations-latitude-longitude-and-zoom-respond-and/m-p/236650#M14703</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-11-17T17:56:12Z</dc:date>
    </item>
  </channel>
</rss>

