<?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: Blank Google Map Background in Container in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323540#M583785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this question is a bit old, but thought I'd offer a response in case it may help others running into this.&amp;nbsp; I observed this problem when trying to insert a Google Map chart into a container using QV 10 SR2.&amp;nbsp; I was using a linked chart object.&amp;nbsp; I also noted that The &lt;STRONG&gt;Width &lt;/STRONG&gt;and &lt;STRONG&gt;Height &lt;/STRONG&gt;properties (Caption tab) of the chart were being reset to very small values (&amp;lt; 10) for the chart object in the container.&amp;nbsp; When I manually reset them to the proper values, the chart would appear.&amp;nbsp; But when saving and re-opening the QV file, the chart dimensions would again be reset and the map image would not be visible.&amp;nbsp; It would either be blank, or sometimes have a blur with faint hues, but certainly not a visible map background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I considered just dropping the container, then using buttons to offer the UI of the container, but instead decided to setup a script that executes a module Sub() to reset the dimensions when the Chart object is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module that does the work is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub SetChartDimensions( strChartID, intWidth, intHeight )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set obj = ActiveDocument.GetSheetObject( strChartID ) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set objPropPos = obj.GetRect&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objPropPos.Width = intWidth&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objPropPos.Height = intHeight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;obj.SetRect objPropPos&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module I call on the Charts .Activate event is here.&amp;nbsp; CH61 is the ID of the chart object in my container.&amp;nbsp; 809 and 520 are the desired width and height.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub FixGoogleMap&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SetChartDimensions "CH61", 809, 520&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To setup the trigger for the chart's activate event, open properties for the Sheet, then select the Triggers tab.&amp;nbsp; Scroll down to the document object for your Container (CT##), then add an action for "OnActivate".&amp;nbsp; The action is External | Run Macro, and the Macro Name is &lt;STRONG&gt;FixGoogleMap&lt;/STRONG&gt; (the name of the sub above).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 15:04:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-08T15:04:04Z</dc:date>
    <item>
      <title>Blank Google Map Background in Container</title>
      <link>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323537#M583782</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;&lt;/P&gt;&lt;P&gt;I got a issue on displaying Google Map in a container.&amp;nbsp; The dynamic background disappear&amp;nbsp; in the container.&amp;nbsp; When I remove the scatter chart from the container.&amp;nbsp; The chart displays fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone has any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 08:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323537#M583782</guid>
      <dc:creator />
      <dc:date>2011-10-10T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Blank Google Map Background in Container</title>
      <link>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323538#M583783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application with a similar problem.&lt;/P&gt;&lt;P&gt; The objects inside the container don't always appear and a blank/white area appears where the contained object should be. As soon I click on any of the "tabs" of the container, the contained object appears.&lt;/P&gt;&lt;P&gt;This looks like a bug to me.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Telmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 16:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323538#M583783</guid>
      <dc:creator>tduarte</dc:creator>
      <dc:date>2011-10-31T16:43:02Z</dc:date>
    </item>
    <item>
      <title>Blank Google Map Background in Container</title>
      <link>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323539#M583784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Telmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I think so.&amp;nbsp; I thought at first is because of the restriction on Google map usage.&amp;nbsp; However, it cannot explain why when the maps are not in the container are displaying properly even within the same tab.&amp;nbsp; I have the same issue as you described on pivot table but only occassionally. The Google maps are not workable in container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 09:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323539#M583784</guid>
      <dc:creator />
      <dc:date>2011-11-01T09:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Blank Google Map Background in Container</title>
      <link>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323540#M583785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize this question is a bit old, but thought I'd offer a response in case it may help others running into this.&amp;nbsp; I observed this problem when trying to insert a Google Map chart into a container using QV 10 SR2.&amp;nbsp; I was using a linked chart object.&amp;nbsp; I also noted that The &lt;STRONG&gt;Width &lt;/STRONG&gt;and &lt;STRONG&gt;Height &lt;/STRONG&gt;properties (Caption tab) of the chart were being reset to very small values (&amp;lt; 10) for the chart object in the container.&amp;nbsp; When I manually reset them to the proper values, the chart would appear.&amp;nbsp; But when saving and re-opening the QV file, the chart dimensions would again be reset and the map image would not be visible.&amp;nbsp; It would either be blank, or sometimes have a blur with faint hues, but certainly not a visible map background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I considered just dropping the container, then using buttons to offer the UI of the container, but instead decided to setup a script that executes a module Sub() to reset the dimensions when the Chart object is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module that does the work is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub SetChartDimensions( strChartID, intWidth, intHeight )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set obj = ActiveDocument.GetSheetObject( strChartID ) &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Set objPropPos = obj.GetRect&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objPropPos.Width = intWidth&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;objPropPos.Height = intHeight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;obj.SetRect objPropPos&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module I call on the Charts .Activate event is here.&amp;nbsp; CH61 is the ID of the chart object in my container.&amp;nbsp; 809 and 520 are the desired width and height.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub FixGoogleMap&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SetChartDimensions "CH61", 809, 520&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To setup the trigger for the chart's activate event, open properties for the Sheet, then select the Triggers tab.&amp;nbsp; Scroll down to the document object for your Container (CT##), then add an action for "OnActivate".&amp;nbsp; The action is External | Run Macro, and the Macro Name is &lt;STRONG&gt;FixGoogleMap&lt;/STRONG&gt; (the name of the sub above).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 15:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Blank-Google-Map-Background-in-Container/m-p/323540#M583785</guid>
      <dc:creator />
      <dc:date>2012-11-08T15:04:04Z</dc:date>
    </item>
  </channel>
</rss>

