We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8434
    • 5 Posts
    Thanks rewnz, that works great smiley
      - Brent
      • 17863
      • 32 Posts
      Hi,

      I use a French manager lang settings.

      When I try to set googlemapstv with the selects yes/no (translation : oui/non), here is the javascript output.
      There a french booleans instead yes or no ! smiley

      <script type="text/javascript"> 
      // <![CDATA[
      window.onload = function() {GTV.createMap({"class":"gmaptv","zoom":15,"controls":["GLargeMapControl3D","GOverviewMapControl","GMapTypeControl"],"infoWindow":"Non","search":"Non","labelControl":"Non","traffic":"Non","customIcon":"Non","iconImage":0,"streetview":0,"streetviewHeight":300,"streetviewYa":"5","streetviewPitch":0,"streetviewUserPhotos":"Non","ads":"Non","adsMaxOnMap":2,"adsPublisher":0,"avoidHighways":"Non","language":"fr","directionsWidth":300,"directions":false,"el":"tvgmap4","address":"7 rue de g\u00eanes 13006 Marseille"});}
      window.onunload = GUnload;
      // ]]>
      </script>
      </div> 
      
        --
        MacSpyre
        • 19550
        • 8 Posts
        Hello macspyre.

        Open core/model/modx/processors/element/tv/renders/web/output/googlemap.php and change these lines
        /* fix boolean params (bug in Revo RC1) */
        foreach ($params as $k => $v) {
            if ($v == 'No' || empty($v)) $params[$k] = 0;
            else if ($v == 'Yes') $params[$k] = 1;
        }

        to
        /* fix boolean params (bug in Revo RC1) */
        foreach ($params as $k => $v) {
            if ($v == 'Non' || empty($v)) $params[$k] = 0;
            else if ($v == 'Oui') $params[$k] = 1;
        }


        Really dirty solution grin but it works
          • 27330
          • 884 Posts
          is it possible to have several markers on a single map?
            • 21800
            • 174 Posts
            is it possible to add additional text or an image to the marker bubble on the map?
              • 21838
              • 284 Posts
              Quote from: sinbad at Jan 15, 2011, 05:33 PM

              is it possible to have several markers on a single map?
              This is a good question! I’d like to do a map with several markers and info-boxes but yet I didn’t figure out how to.
                MODX Free Template Base: MODX-Boilerplate | my blog (lots of MODX stuff) | my gitHub (translations) | MODX User Groups Germany (Facebook)
                • 37242 ☆ A M B ☆
                • 339 Posts
                I just transfered http://modx2.wangba.fr/index.php?id=225 into Revo. Wait a few days for me to finish it. Follow me on twitter to stay updated: http://twitter.com/gallenkamp
                  • 25803 ☆ A M B ☆
                  • 721 Posts
                  Quote from: ecreate at Dec 09, 2010, 01:28 AM

                  Thanks rewnz, that works great smiley

                  Was there anything else you did? Even with this change I can’t get this to work in IE. Will have to use the iframe embed method until then.
                    • 35545
                    • 35 Posts
                    What’s so difficult about installing GoogleMapsTV through the package manager, add a new TV, choose googlemap for input and place the TV on a webpage. Well, you tell me but nothing aint showing. I gave standard values (and left blank) Am I missing something?

                    I tried other Google Maps script but those gave API key errors thanks to the friendly URL’s.

                    I use Revolution 2.1.3, i also tested it with 2.0.8. Same thing!
                      • 18174
                      • 116 Posts
                      After installation & setup I might remember that all worked, but now, the map doesn't show.
                      No JS error, all links are functional.
                      MODX Revo 2.1.5 googlemapstv 1.0 rc3