We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19337
    • 18 Posts
    Hello I have successfully installed GoogleMapMarker, the marker shows up where it should. Great snippet by the way.

    But my problem is, I don’t know how to get text in the bubble, it’s blank at the moment.
    http://www.naturspross.ch/lageplan.html

    My second question.
    I would like the bubble to be visible by default without clicking or hovering the marker. Is that possible?

    Thanks for the help in advance.

    Michel
      film:projekt ------------------- autodidakten
      • 7923
      • 4,213 Posts
      text to the bubble comes from the marker document content.. so just write something to the content field and it should appear if you have installed it correctly. You can try getting the markers open automatically by replacing this:

      @CODE:var point = new GLatLng([+description+]); var marker = createMarker(point, \'[+title:slashandstrip+]\', \'[+content:slashandstrip+]\'); map.addOverlay(marker);


      with this:

      @CODE:var point = new GLatLng([+description+]); var marker = createMarker(point, \'[+title:slashandstrip+]\', \'[+content:slashandstrip+]\'); map.addOverlay(marker); GEvent.trigger(marker,\'click\');


      Be sure to use the snippet code that is in my post above.

      Edit: fixed quotes


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 29181
        • 480 Posts
        Hat’s off...great work Doze!
          Adrian Lawley: www.adrianlawley.com
          • 19337
          • 18 Posts
          Hi Doze

          Thanks for the fast respond. The bubble now is visible by default. But I still can’t get any text into it.

          I would say I installed everything correct. This is my snippet call:

          [!GoogleMapMarker? &apiKey=`ABQIAAAA1fUbRwwpQrIn0JBDayB8IhQMNXtDeq3zFDj-uFv_lxkAAUIxYxSeiEaDXYZDHREM8bz7hJ2eehBtyg` &startID=`20` &tpl=`GoogleMapTemplate` &mapType=`normal` &defaultZoom=`16` &centerPos=47.523960,8.788500!]


          And in the file attached you see a screenshot of the menu tree.

          Michel
            film:projekt ------------------- autodidakten
            • 7923
            • 4,213 Posts
            Quote from: Michelw at May 07, 2007, 06:09 AM

            Thanks for the fast respond. The bubble now is visible by default. But I still can’t get any text into it.
            Install the snippet from my post above and remove the tpl parameter from your snippet call.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 19337
              • 18 Posts
              OK, everything works now. Forgot to install the PHx Plugin.
              Sorry for bothering you one time to much.

              Michel
                film:projekt ------------------- autodidakten
                • 18830
                • 161 Posts
                Hallo,

                I’ve just installed the latest version of GoogleMapMarker.

                Im running PHx 2.1.2 and Ditto 2.0.1 on a MODx 0.95 installation. The litte php-snippet from above ist also running.

                This is may call:

                [[GoogleMapMarker? &apiKey=`AB...` $centerPos=`51.856404,12.216711` $defaultZoom=`15` ]]
                


                There are no markers set.

                There will be a map shown but only the default map. Looking up the code the only parameter I can find at GoogleMaps-Javascript is the apikey.

                Did I miss something? Please help.
                  • 7923
                  • 4,213 Posts
                  Use the &startID parameter to tell where the marker documents are


                    "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                    • 18830
                    • 161 Posts
                    Quote from: doze at Jun 06, 2007, 03:59 PM

                    Use the &startID parameter to tell where the marker documents are

                    No, no luck, Doze. Whatever I do, setting markers or not, setting the zoom level or not, I just get the default map. The &centerPos and all other parameters in my call will be irgnored.

                    When you take a look at this page’s code

                    http://elbebadefest.de/lageplan

                    you can see that the JavaScript-Call for GoogleMaps ist incomplete. Only the GoogleApi will be shown. sad
                      • 7923
                      • 4,213 Posts
                      In the sample call above, you use $centerPos and $defaultZoom, they should be &centerPos and &defaultZoom


                        "He can have a lollipop any time he wants to. That's what it means to be a programmer."