<?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 Map help please!!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Map-help-please/m-p/1134449#M372572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I am making a map for an app and I have a problem were the static image will change when the zoom is changed but the longitude and latitude don't so I end up with data points in the same place at every zoom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a solution that allows me to change zoom and the longitude and latitude will change so that I can actually see the data points at every level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expressions:&lt;/P&gt;&lt;P&gt;Longitude - =SUM( round (256*pow(2,($(var_zoom)-1)))+( longitude&amp;nbsp; *((256*pow(2,$(var_zoom)))/360)) )&lt;/P&gt;&lt;P&gt;Latitude - =SUM(((256*pow(2,($(var_zoom)-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,$(var_zoom)))/(2*pi())))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this in my script: &lt;/P&gt;&lt;P&gt;// Google Maps Key&lt;/P&gt;&lt;P&gt;gmap_key = 'AIzaSyAASA7qdksCLnQJcvMlgrFvPi10puehhKc';&lt;/P&gt;&lt;P&gt;max_zoom_level = 14;&lt;/P&gt;&lt;P&gt;def_zoom_level = 7;&lt;/P&gt;&lt;P&gt;def_map_size = 401;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Variables required for calculating map&lt;/P&gt;&lt;P&gt;var_pi180 = '=pi()/180';&lt;/P&gt;&lt;P&gt;var_lat_offset = '0';&lt;/P&gt;&lt;P&gt;var_mc2 = '=256*pow(2,$(var_zoom))';&lt;/P&gt;&lt;P&gt;var_mc1 = '=256*pow(2,($(var_zoom)-1))';&lt;/P&gt;&lt;P&gt;var_mid_lat = '=median(latitude)';&lt;/P&gt;&lt;P&gt;var_mid_long = '=median(longitude)'; &lt;/P&gt;&lt;P&gt;var_zoom = '=if(max(aggr(if(max(round(256*pow(2,(_zoom_level-1)))+(Longitude*((256*pow(2,_zoom_level))/360)))-min(round(256*pow(2,(_zoom_level-1)))+(Longitude*((256*pow(2,_zoom_level))/360)))&amp;lt;def_map_size AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))&amp;lt;def_map_size,_zoom_level,null()),_zoom_level))&amp;gt;def_zoom_level,max(aggr(if(max(round(256*pow(2,(_zoom_level-1)))+(longitude*((256*pow(2,_zoom_level))/360)))-min(round(256*pow(2,(_zoom_level-1)))+(longitude*((256*pow(2,_zoom_level))/360)))&amp;lt;def_map_size AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))&amp;lt;def_map_size,_zoom_level,null()),_zoom_level)),def_zoom_level)';&lt;/P&gt;&lt;P&gt;var_maptype = '=if(isnull(only(maptype)),fieldvalue('&amp;amp;chr(39)&amp;amp;'maptype'&amp;amp;chr(39)&amp;amp;',4),maptype)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Calculate best zoom level&lt;/P&gt;&lt;P&gt;set HidePrefix = '_';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_zoom_level:&lt;/P&gt;&lt;P&gt;LOAD RecNo() as _zoom_level AutoGenerate(max_zoom_level);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maptype:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maptype&lt;/P&gt;&lt;P&gt;&amp;nbsp; roadmap&lt;/P&gt;&lt;P&gt;&amp;nbsp; mobile&lt;/P&gt;&lt;P&gt;&amp;nbsp; satellite&lt;/P&gt;&lt;P&gt;&amp;nbsp; terrain&lt;/P&gt;&lt;P&gt;&amp;nbsp; hybrid&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need the help and would appreciate anything&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 15:43:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-16T15:43:39Z</dc:date>
    <item>
      <title>Map help please!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Map-help-please/m-p/1134449#M372572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I am making a map for an app and I have a problem were the static image will change when the zoom is changed but the longitude and latitude don't so I end up with data points in the same place at every zoom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a solution that allows me to change zoom and the longitude and latitude will change so that I can actually see the data points at every level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expressions:&lt;/P&gt;&lt;P&gt;Longitude - =SUM( round (256*pow(2,($(var_zoom)-1)))+( longitude&amp;nbsp; *((256*pow(2,$(var_zoom)))/360)) )&lt;/P&gt;&lt;P&gt;Latitude - =SUM(((256*pow(2,($(var_zoom)-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,$(var_zoom)))/(2*pi())))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this in my script: &lt;/P&gt;&lt;P&gt;// Google Maps Key&lt;/P&gt;&lt;P&gt;gmap_key = 'AIzaSyAASA7qdksCLnQJcvMlgrFvPi10puehhKc';&lt;/P&gt;&lt;P&gt;max_zoom_level = 14;&lt;/P&gt;&lt;P&gt;def_zoom_level = 7;&lt;/P&gt;&lt;P&gt;def_map_size = 401;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Variables required for calculating map&lt;/P&gt;&lt;P&gt;var_pi180 = '=pi()/180';&lt;/P&gt;&lt;P&gt;var_lat_offset = '0';&lt;/P&gt;&lt;P&gt;var_mc2 = '=256*pow(2,$(var_zoom))';&lt;/P&gt;&lt;P&gt;var_mc1 = '=256*pow(2,($(var_zoom)-1))';&lt;/P&gt;&lt;P&gt;var_mid_lat = '=median(latitude)';&lt;/P&gt;&lt;P&gt;var_mid_long = '=median(longitude)'; &lt;/P&gt;&lt;P&gt;var_zoom = '=if(max(aggr(if(max(round(256*pow(2,(_zoom_level-1)))+(Longitude*((256*pow(2,_zoom_level))/360)))-min(round(256*pow(2,(_zoom_level-1)))+(Longitude*((256*pow(2,_zoom_level))/360)))&amp;lt;def_map_size AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))&amp;lt;def_map_size,_zoom_level,null()),_zoom_level))&amp;gt;def_zoom_level,max(aggr(if(max(round(256*pow(2,(_zoom_level-1)))+(longitude*((256*pow(2,_zoom_level))/360)))-min(round(256*pow(2,(_zoom_level-1)))+(longitude*((256*pow(2,_zoom_level))/360)))&amp;lt;def_map_size AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((latitude)*pi()/180)))/(1-(sin((latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))&amp;lt;def_map_size,_zoom_level,null()),_zoom_level)),def_zoom_level)';&lt;/P&gt;&lt;P&gt;var_maptype = '=if(isnull(only(maptype)),fieldvalue('&amp;amp;chr(39)&amp;amp;'maptype'&amp;amp;chr(39)&amp;amp;',4),maptype)'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Calculate best zoom level&lt;/P&gt;&lt;P&gt;set HidePrefix = '_';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_zoom_level:&lt;/P&gt;&lt;P&gt;LOAD RecNo() as _zoom_level AutoGenerate(max_zoom_level);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maptype:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maptype&lt;/P&gt;&lt;P&gt;&amp;nbsp; roadmap&lt;/P&gt;&lt;P&gt;&amp;nbsp; mobile&lt;/P&gt;&lt;P&gt;&amp;nbsp; satellite&lt;/P&gt;&lt;P&gt;&amp;nbsp; terrain&lt;/P&gt;&lt;P&gt;&amp;nbsp; hybrid&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need the help and would appreciate anything&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-help-please/m-p/1134449#M372572</guid>
      <dc:creator />
      <dc:date>2016-06-16T15:43:39Z</dc:date>
    </item>
  </channel>
</rss>

