We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21800
    • 174 Posts
    run GoogleMapsTV 1.0.0-rc2 with 2.2.0-pl2 (traditional) and get this:

    Fatal error: Call to undefined method modTemplateVarOutputRenderDeprecated::parseInput() in /var/www/web/html/core/model/modx/processors/element/tv/renders/web/output/googlemap.php on line 30

    Can´t find anny solution.
      • 38611
      • 4 Posts
      I had this problem, and got the map to show by adding

      tv->

      into line 30 of googlemap.php

      so open core/model/modx/processors/element/tv/renders/web/output/googlemap.php

      line 30 needs to look like this

      $value= $this->tv->parseInput($value);

      don't know if it's broke anywhere else...

      cheers

      Gary
        • 1778
        • 659 Posts
        @coppercreative thanks for the tip, it corrects the bug perfectly ! Have you already report it to Splittingred on github, he will can patch it for the next release?
        Cheers
          • 21800
          • 174 Posts
          Thanx Garry, you´re great.
            • 17667
            • 108 Posts
            This is a great TV! I have a site where I already have resources with a street address variable and a zip code variable. Is there a way to set up the GoogleMapsTV to pull in the info from those TVs so the information doesn't have to be duplicated in a new TV?

            I don't want to change the output type on the address TV because it is used as straight text in several other places.
              • 38558
              • 1 Posts
              Hoi,

              I have change the file googlemap.php on line 30, and I don't get the value off the TV....please help....
                • 6902
                • 126 Posts
                I also found that I had to change line 94 of core/model/modx/processors/element/tv/renders/web/output/googlemap.php to get it working. v2 of the API was throwing an unsupported message from Google on page load.

                just changed ...&v=2... to ...&v=3...
                  • 37261 ☆ A M B ☆
                  • 113 Posts
                  I would love to run GoogleMapsTV as an output filter, has anyone accomplished that yet? I'd like to use the description system variable and apply the output type to it.
                    • 38878
                    • 255 Posts
                    Maybe I am overlooking something here. I am attempting to integrate this into the EventsX plugin by passing event location detail (which render fine as text in the content, but when passing them into the tv (I'm guessing here). Here's my call. It is a total guess as I have searched and found nothing describing the actual use.

                    [[*MyMapTV? &address=`[[+event.street]], [[+event.city]], [[+event.region]] [[+event.pc]]` &title`[[+event.location]]`]]


                    The map output renders with a "not found" js alert window. What is the syntax to pass the address into the TV?
                      • 3722
                      • 171 Posts
                      I am having a problem when using an output modifier to display map only when address is entered.
                      This is also part of an Articles article. Not sure if there are too many moving parts.

                      I created a TV called "location", the output option is "googlemap".
                      In the ArticleTemplate I am using this call "[[*location:notempty=`[[*location]]`]]"

                      The map shows up fine for an article with an address.
                      With no address, the page pops up a modal box "not found" with an OK button.
                      Getting out of the modal, the page shows a gray map box.
                      The code sent to the page is:
                      <div class="gmaptv" style="width: 600; height: 400px">
                      <div class="gmaptv-map" id="tvgmap8" style="width: 600px; height: 400px;"></div>
                      <br style="clear: both;" /></div>
                      
                      <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=&hl=en"></script>
                      <script type="text/javascript" src="/assets/components/googlemapstv/gtv.js"></script>
                      <script type="text/javascript">
                      // <![CDATA[
                      window.onload = function() {GTV.createMap({"class":"gmaptv","zoom":14,"controls":["GLargeMapControl3D","GOverviewMapControl","GMapTypeControl"],"infoWindow":0,"search":0,"labelControl":0,"traffic":0,"customIcon":0,"iconImage":0,"streetview":0,"streetviewHeight":300,"streetviewYa":"5","streetviewPitch":0,"streetviewUserPhotos":0,"ads":0,"adsMaxOnMap":2,"adsPublisher":0,"avoidHighways":0,"modx.renderFile":"\/homepages\/11\/d292516919\/htdocs\/tty\/core\/model\/modx\/processors\/element\/tv\/renders\/web\/output\/googlemap.php","language":"en","directionsWidth":300,"directions":false,"el":"tvgmap8","address":""});}
                      window.onunload = GUnload;
                      // ]]>
                      </script>


                      The output modifier works for other template variables.
                      Do I need to wrap the "location" tv in something else?
                      Why is it still sending code, when the TV is empty?

                      Thanks
                      BG66