<?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: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39517#M597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling getObject() worked, thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my working code:&lt;/P&gt;&lt;P&gt;$('#page2button2').click(function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.page2button2optie1, .page2button2optie2').toggle();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik.resize();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject('QV03','NtjJuB');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject('QV04','GbNGS');&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you maybe elaborate on this part:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(or even better use visualization Api och call show again) when the user switches. The client caches objects, so it should not fetch from the server again.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't quite understand what you mean by this. Do you maybe have an example for me? I know it already works, but would love to learn the 'better' way as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 18:39:14 GMT</pubDate>
    <dc:creator>cpomeren003</dc:creator>
    <dc:date>2018-04-17T18:39:14Z</dc:date>
    <item>
      <title>[Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39513#M593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on a Mashup in Qlik Sense. This Mashup starts with a map object and a button and when you press that button you get to see a different map in a different size and some secret text. The problem I am having is that when I press the button twice (so to get back to my starting position) my map suddenly has a white square in the background or the background doesn't load 100%. With 'background' I mean the google maps OpenStreetMap.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For a better understanding some screenshots of the problem:&lt;BR /&gt;Starting view (all good):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik.Resize question.PNG" class="image-4 jive-image" src="/legacyfs/online/199720_Qlik.Resize question.PNG" style="height: 523px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I press the left button (all good, get to see new map object and some secret text):&lt;IMG alt="Qlik.Resize question01.PNG" class="jive-image image-2" src="/legacyfs/online/199712_Qlik.Resize question01.PNG" style="height: 521px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I press the left button again (return to starting position -&amp;gt; white squares appear in the background):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik.Resize question02.PNG" class="jive-image image-3" src="/legacyfs/online/199713_Qlik.Resize question02.PNG" style="height: 530px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can get rid of these white squares? The user can do it by zooming in and out, because then the entire map will show/reload again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my relevant code:&lt;/P&gt;&lt;P&gt;JS:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;$('#page2button2').click(function () {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.page2button2optie1, .page2button2optie2').toggle();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik.resize();&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;HTML:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;div class="row"&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="col-sm-12 col-md-12 page2button2optie1 qvobject" id="QV03"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="col-xs-12 col-md-12 page2button2optie2"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;div class="row"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;div class="col-sm-12 col-md-6 qvobject" id="QV04"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;div class="col-sm-12 col-md-6"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="row"&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 180px;"&gt;&amp;lt;div class="col-sm-12 col-md-12 qvobject" id="QV05"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 180px;"&gt;&amp;lt;div class="col-sm-12 col-md-12 qvobject" id="QV10"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 180px;"&gt;&amp;lt;div class="col-sm-12 col-md-12 qvobject" id="QV11"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 180px;"&gt;&amp;lt;div class="col-sm-12 col-md-12 qvobject" id="QV12"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know what I am doing wrong in my code or if there is any way I can prevent these white squares? One solution could be that on the press of the button I quickly zoom in and out without the user knowing (since this also works for the user, it should also work for me). The problem is, I don't know how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would love to hear what you guys think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Casper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 08:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39513#M593</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-04-16T08:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39514#M594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is the the same map data? Couldn't you just put the text on top of the map and just toggle it, not the map?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39514#M594</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-16T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39515#M595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not the same map data. I also got the same situation with a map object that swaps with a table and that has the same problem. So unfortunately that wouldn't solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for thinking with me though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 20:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39515#M595</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-04-16T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39516#M596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like a bug, resize() should work. But you could try calling getObject() (or even better use visualization Api och call show again) when the user switches. The client caches objects, so it should not fetch from the server again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 05:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39516#M596</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-17T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39517#M597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling getObject() worked, thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my working code:&lt;/P&gt;&lt;P&gt;$('#page2button2').click(function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.page2button2optie1, .page2button2optie2').toggle();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; qlik.resize();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject('QV03','NtjJuB');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.getObject('QV04','GbNGS');&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you maybe elaborate on this part:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(or even better use visualization Api och call show again) when the user switches. The client caches objects, so it should not fetch from the server again.&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't quite understand what you mean by this. Do you maybe have an example for me? I know it already works, but would love to learn the 'better' way as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 18:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39517#M597</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-04-17T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39518#M598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A solution with the &lt;A href="https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/VisualizationAPI/VisualizationAPI.htm"&gt;Visualization API&lt;/A&gt; would mean that you get the maps first:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15239914900612867 jive_text_macro" jivemacro_uid="_15239914900612867"&gt;
&lt;P&gt;var map1, map2;&lt;/P&gt;
&lt;P&gt;app.visualization.get('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NtjJuB').then(function(m1){&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; map1 = m1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; map1.show('QV03');&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;app.visualization.get('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;GbNGS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;').then(function(m2){&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; map2 = m2;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; map2.show('QV04');&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In your click handler you can then just show the map again:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; map1.show('QV03');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;map2.show('QV04');&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have written an introduktion to the visualizatioon API here:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/docs/DOC-16768"&gt;The Visualization API&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 18:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39518#M598</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-04-17T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: [Mashup] White squares when I use Qlik.resize() in combination with a map object and a button</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39519#M599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks once again for the explanation/help, it really helps.&lt;BR /&gt; I am fairly new to API's so your link is great as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-White-squares-when-I-use-Qlik-resize-in-combination-with/m-p/39519#M599</guid>
      <dc:creator>cpomeren003</dc:creator>
      <dc:date>2018-04-17T19:11:14Z</dc:date>
    </item>
  </channel>
</rss>

