<?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 Google Map runs well only if... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387377#M569727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the following SET Parameters are set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result i.e.: 100,000,000.00 which is the U.S. related format - Google Map runs!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In European environments this setting is used to be set vice versa.&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result i.e.: 100.000.000,00 which is the European related format. But: Google Map does not work correct any more now.&lt;/P&gt;&lt;P&gt;1st Reason: Google needs geodata like this Lat 7.234262342&amp;nbsp; and Long 24.4564677 &lt;/P&gt;&lt;P&gt;and NOT Lat 7,234262342&amp;nbsp; and Long 24,4564677.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This I checked already. But nevertheless geodata shows up not correctly in my google map. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: How to use the European format for digits together with Google Maps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Josi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added expected and current results, when using different settings....Message was edited by: Jörg Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 15:33:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-05T15:33:32Z</dc:date>
    <item>
      <title>Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387377#M569727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the following SET Parameters are set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result i.e.: 100,000,000.00 which is the U.S. related format - Google Map runs!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In European environments this setting is used to be set vice versa.&lt;/P&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result i.e.: 100.000.000,00 which is the European related format. But: Google Map does not work correct any more now.&lt;/P&gt;&lt;P&gt;1st Reason: Google needs geodata like this Lat 7.234262342&amp;nbsp; and Long 24.4564677 &lt;/P&gt;&lt;P&gt;and NOT Lat 7,234262342&amp;nbsp; and Long 24,4564677.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This I checked already. But nevertheless geodata shows up not correctly in my google map. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: How to use the European format for digits together with Google Maps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Josi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added expected and current results, when using different settings....Message was edited by: Jörg Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 15:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387377#M569727</guid>
      <dc:creator />
      <dc:date>2012-10-05T15:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387378#M569728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is Replace(Lat, ',', '.')&lt;/P&gt;&lt;P&gt;Or change text format of your data with a num() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 09:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387378#M569728</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-06T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387379#M569729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;"The easiest way is Replace(Lat, ',', '.')" &amp;gt;&lt;STRONG&gt; did that already.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"Or change text format of your data with a num() function." &lt;STRONG&gt;did that already too.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Lat and Long Format exist as Google Maps expects it: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(latitude, '#.#############', '.' , ',' ) as latitude,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(longitude, '#.#############', '.' , ',' ) as longitude, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Nevertheless, there seem to be some functions&amp;nbsp; somewhere in the standard load script for Google Maps (see below) that might need the "." as the decimal parameter to work correctly (see script):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gmap_key = 'XX';&lt;/P&gt;&lt;P&gt;max_zoom_level = 15; //maximum value 17 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Variables required for calculating map&lt;/P&gt;&lt;P&gt;// No need to change these&lt;/P&gt;&lt;P&gt;var_pi180=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '=pi()/180';&lt;/P&gt;&lt;P&gt;var_lat_offset=&amp;nbsp;&amp;nbsp;&amp;nbsp; '0';&lt;/P&gt;&lt;P&gt;var_mc2=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '=256*pow(2,$(var_zoom))';&lt;/P&gt;&lt;P&gt;var_mc1=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '=256*pow(2,($(var_zoom)-1))';&lt;/P&gt;&lt;P&gt;var_mid_lat=&amp;nbsp;&amp;nbsp;&amp;nbsp; '=min(latitude)+(1+var_lat_offset)*((max(latitude)-min(latitude))/2)';&lt;/P&gt;&lt;P&gt;var_mid_long=&amp;nbsp;&amp;nbsp;&amp;nbsp; '=min(longitude)+(max(longitude)-min(longitude))/2';&lt;/P&gt;&lt;P&gt;var_zoom=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '=max(aggr(if(max( round(256*pow(2,(_zoom_level -1)))+( longitude&amp;nbsp; *((256*pow(2,_zoom_level ))/360)) )-min( round(256*pow(2,(_zoom_level -1)))+( longitude&amp;nbsp; *((256*pow(2,_zoom_level ))/360)) ) &amp;lt;map_size_x 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;map_size_y,_zoom_level,1),_zoom_level))';&lt;/P&gt;&lt;P&gt;var_maptype=&amp;nbsp;&amp;nbsp;&amp;nbsp; '=if(isnull(only(maptype)),fieldvalue( '&amp;amp;chr(39)&amp;amp;'maptype'&amp;amp;chr(39)&amp;amp;', 1 ),maptype)';&lt;/P&gt;&lt;P&gt;map_size_x=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '400';&lt;/P&gt;&lt;P&gt;map_size_y=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '400';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...or in the MAP-Object the "." as the decimal Paramenter is needed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for the Longitude:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=sum( round (256*pow(2,($(var_zoom)-1)))+( longitude *((256*pow(2,$(var_zoom)))/360)) )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for the Latidude:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=sum(&amp;nbsp; &lt;/P&gt;&lt;P&gt;((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;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the &lt;/STRONG&gt;" SET DecimalSep=',';&lt;STRONG&gt;&amp;nbsp; " is changed to &lt;/STRONG&gt;" SET DecimalSep='.'; "&lt;STRONG&gt; in the loading script, things work.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem is, we can't use this US number format.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Many Thanks for any help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Josi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 14:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387379#M569729</guid>
      <dc:creator />
      <dc:date>2012-10-06T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387380#M569730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're missing that longitude and latitude should be the numbers, while in your case it seems it's just strings.&lt;/P&gt;&lt;P&gt;When you change the SET ThousandSep=','; and SET DecimalSep='.'; QV converts them&amp;nbsp; implicitly.&lt;/P&gt;&lt;P&gt;The num() function doesn't convert string to number, it changes the text format of a &lt;SPAN style="text-decoration: underline;"&gt;numeric&lt;/SPAN&gt; value. To convert your strings to numbers use &lt;STRONG&gt;num#()&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought you're talking about http get string request (it's used to load dynamic map image, look at chart properties).&lt;/P&gt;&lt;P&gt;I think you could also check it so that the expression creates the right string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 16:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387380#M569730</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-06T16:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387381#M569731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;this is a part of the geodata.xls:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 545px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="23" width="84"&gt;60000&lt;/TD&gt;&lt;TD width="108"&gt;Frankfurt&lt;/TD&gt;&lt;TD width="108"&gt;Große Bockenheimer&lt;/TD&gt;&lt;TD align="right" class="xl65" width="120"&gt;8,6746824&lt;/TD&gt;&lt;TD align="right" class="xl65" width="125"&gt;50,1144288&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="23"&gt;20000&lt;/TD&gt;&lt;TD&gt;Hamburg&lt;/TD&gt;&lt;TD&gt;Große Freiheit&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;9,9573827&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;53,550093&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;40212&lt;/TD&gt;&lt;TD&gt;Duesseldorf&lt;/TD&gt;&lt;TD&gt;Königsallee&lt;/TD&gt;&lt;TD align="right"&gt;6,7792623&lt;/TD&gt;&lt;TD align="right"&gt;51,2223383&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="23"&gt;80000&lt;/TD&gt;&lt;TD&gt;Muenchen&lt;/TD&gt;&lt;TD&gt;Maximilienstraße&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;11,5836351&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;48,1384535&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="23"&gt;8032&lt;/TD&gt;&lt;TD&gt;Zuerich&lt;/TD&gt;&lt;TD&gt;Talstraße&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;8,5380326&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;P&gt;47,3690239&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;10365&lt;/TD&gt;&lt;TD&gt;Berlin&lt;/TD&gt;&lt;TD&gt;Potsdamer Platz&lt;/TD&gt;&lt;TD align="right"&gt;13,3758433&lt;/TD&gt;&lt;TD align="right"&gt;52,5092892&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is NOT to have strings for longitude and latitude (i.e. one can add numbers in the columns 3 and 4).&lt;/P&gt;&lt;P&gt;It we use: SET DecimalSep='.' or if we use SET DecimalSep=',';&amp;nbsp; AND if we select ONE city only everything is fine with both settings. The bubble in our chart, that is, the city is shown in the right place on the map!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If more than one City is selected the bubbles in the chart are NOT set correctly if&amp;nbsp; SET DecimalSep=','; is set.&lt;/P&gt;&lt;P&gt;If more than one City is selected the bubbles in the chart are set correctly if&amp;nbsp; SET DecimalSep=','; is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 17:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387381#M569731</guid>
      <dc:creator />
      <dc:date>2012-10-06T17:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Google Map runs well only if...</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387382#M569732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample that works incorrectly ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 17:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Map-runs-well-only-if/m-p/387382#M569732</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-06T17:45:34Z</dc:date>
    </item>
  </channel>
</rss>

