We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    Quote from: gusleig at Jan 28, 2007, 03:56 PM

    My question is. How do I start the map without any marker and toogle marker on/off with the text links? Like is in this website http://www.netguru.fi/modx/googlemaps.html
    The markers are there on the map from start, the map is just centered on another place initially.

    Quote from: OpenGeek at Jan 28, 2007, 04:04 PM

    I experienced the same thing implementing UFO yesterday
    Oh, you’re implementing UFOs now.. Can they fly faster than the speed of light and have invisible stealth modes, etc? I want one too! Kidding aside, good info on that IE bug.. I actually encountered the same thing when I did some changes to lightbox v2 some moons ago (hiding pictures while page loads), wish I’d knew that then.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: doze at Jan 28, 2007, 04:51 PM

      Quote from: OpenGeek at Jan 28, 2007, 04:04 PM

      I experienced the same thing implementing UFO yesterday
      Oh, you’re implementing UFOs now.. Can they fly faster than the speed of light and have invisible stealth modes, etc? I want one too! Kidding aside, good info on that IE bug.. I actually encountered the same thing when I did some changes to lightbox v2 some moons ago (hiding pictures while page loads), wish I’d knew that then.
      Sorry, no Unidentified Flying Object support, yet, but Unobtrusive Flash Objects is what I was referring to, and is also where I discovered the solution to the problem. tongue
        • 20207
        • 22 Posts
        The snippet is great and working fine on my site now. But i want to make a long list of markers. Can anyone modify the snippet so a dropdownlist will appear (instead of a long list of markers)?
          • 19741
          • 90 Posts
          Hi doze,

          Thanks for this great snippet! But there’s one problem: In Opera 9.0 the page is "shaking" when you switch between the markers. You can see this on your testsite http://www.netguru.fi/modx/googlemaps.html, too.

          Do you or anybody else have any hints, to solve this problem?

          Thanks in advance.
            Bye,
            Mithrandir
            • 17688
            • 6 Posts
            Hi !
            back again...

            All worked fine but and now I’ve another new problem.

            The links in the sidebar produce a error:

            myclick is not defined
            http://immocdpi.c... (line 1)

            the site : http://immocdpi.com/

            Any idea ?
              • 36805
              • 354 Posts
              First of all thanks for this great snippet!

              EDIT2: I have found what caused the malfunction in the IE6, it was some of the conditionally included code (by <!--[if lte IE 6]>) that was used in the minimal template of a modx standard installation. Sorry for wasting your time laugh

              Secondly I have a problem with its map display when i am using the IE6 while in the IE7 and in FF it all works perfectly. Somehow the IE6 just won’t show the map images, instead it says they are not available for the current zoomlevel. But no matter what zoomlevel i use it won’t appear. Any ideas on what might cause this and how i could get the IE6 to cooperate?

              Here is the url i temporary develop this on:

              http://85.92.144.37/~vmctech/

              this is my snippet call:

              [[GoogleMapMarker? &startID=`2` &apiKey=`ABQIAAAAKc3Y5bjAwypJ9L0ND6-QLhSFvUoM1o-geqkk-fy5RQqk9_SZvBSH5f4WhJJiRZLvfqkQYHWXA8JTQg` &tpl=`GMapChunk` &mapType=`hybrid` &centerPos=52.063045,5.208893 &openMouseOverMarker=`1` &overviewMapSize=`150,150` &defaultZoom=7]]

              EDIT1: For figuring out what is going on I tried the example html code google offers when generating my api key and strangely the map display works fine then i try it:
              http://85.92.144.37/~vmctech/example.html
                • 22303 MODX Staff
                • 10,725 Posts
                In your tag, you have whitespace between the parameters, but not all of the values are enclosed in backticks (`). This might be causing incorrect data to be processed by the snippet. Just a thought...
                  • 7923
                  • 4,213 Posts
                  I guess he had already solved his errors.. or that’s the idea I got from the "EDIT2" part..


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 36805
                    • 354 Posts
                    Quote from: doze at Feb 17, 2007, 04:23 PM

                    I guess he had already solved his errors.. or that’s the idea I got from the "EDIT2" part..
                    Indeed, i got it fixed. Nevertheless i’ll add the backticks to follow the clearly better coding practice and maybe avoid other trouble in the future smiley
                      • 4310
                      • 2,310 Posts
                      I can’t get the markers to display.
                      Snippet call is...
                      [!GoogleMapMarker? &apiKey=`ABQIAAAAYcoc9A-duXiuiTXWZoAygxRD_hqpplOZCJsBCiUszznx5GU1KBRd839DOLY7gxsfcd_g4Dor5G0qZw` &mapControl=`large` &mapType=`hybrid` &defaultZoom=`12` &centerPos=`52.347216,-1.135519` &tpl=`GoogleMapMarker`&startId=`123`!]

                      The chunks are standard and generate the map & maplinks divs O.K.
                      The map displays but no markers are generated in the HTML.
                      I have a parent folder No. 123 with a couple of children, all are set to unpublished.
                      Not sure if I’ve correctly added the info to them.
                      I’ve used the Document Setting panel and filled the Title in as School, the Description in as 52.347072,-1.136109.
                      I have then put a little plain text in the Document content.
                      I have tried the parent folder and children both cached and uncached.
                      Using MODx 0.9.2.2 (rev 1923) but will upgrade to 0.9.5 this weekend.
                      Here’s a link
                      Can anyone help?
                      Thanks
                      David