We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    Well this really is a fantastic snippet - I just managed to add filtering to it so that I can have a main map with all my restaurants on and then for each restaurant page I have a smaller map with just the pertinent restaurant in place - all from the same snippet. Probably not very clever to you pros out there but I’m pleased as punch grin
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 12985
      • 5 Posts
      Hi Guys,

      I’ve walked through this whole thread and i can’t seem to find the problem.

      the site is http://www.cosmesotherapie.nl/beta/index.php?id=27

      I’m pretty sure that I’ve done everything that was written in the instructions.

      Can anyone help me out??

      Thanks in advanced,
      Joshua
        • 36582
        • 463 Posts
        I notice your tpl in the call is to `GoogleMapMarker` - the default is `GMap` if you followed the instructions. I don’t think this is your only problem but it maybe a start?
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
          • 12985
          • 5 Posts
          Hi chrisandy,

          Thanks for your reply. That helped all thought i can not find this GMap in the documentation. I’m reading on this page http://modxcms.com/GoogleMapMarker-723.html.

          Now the next tricky bit is to get the markers up and running. I just can’t seem to see the problem I have. I did the following:
          In the document tree;
          - document id27, tpl, not-cached, document folder -> with snippit call =[[GMap? &apiKey=`ABQIAAect.....` &startID=`28` &tpl=`GoogleMapMarker ` &centerPos=`52.16045455774706, 5.3887939453125`]]
          - as a child under this map I’ve got a document id28, tpl, cached, document folder
          - and as a child to this map I’ve got a Marker document with id29, tpl, not-cached, no document folder and with the appropriate data (title, description, content)

          Can you help me??

          Thanks in advanced,

          Joshua
            • 36582
            • 463 Posts
            Hi Joshua,

            I think you misunderstood me. Just use a tpl {{chunk}} called GMap to hold your div with an id of "map’ - but call the snippet as you had it before.

            My GMap chunk looks like this:

            <div id="map" style="float:left; width: 720px; height: 400px;">Loading map...</div>
                        <div id="maplinks" style="margin-left: 10px; padding-right: 10px; float: left; width: 190px; display: block; height: 400px; overflow: auto;">
            </div>


            My call looks like this:

            [[GoogleMapMarker? &apiKey=`ABQIAA....` &startID=`53,54,192,190,55,193,191,189` &centerPos=`52.955322,-1.15453` &descendentDepth=`1` &tpl=`GMap` &defaultZoom=`16`]]


            The children of the documents I’m calling are published and have the co-ordinates for the map markers in the description field.

            I’m using the GoogleMapMarker snippet code found on page 6 of this thread.

            I’m using Ditto 2.0.2.

            Hope that helps you a little - it’s not an easy thing to get going but once it works it’s amazing.

            Chris

            I’
              Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
              • 12985
              • 5 Posts
              Hi Chris,

              Thanks for your help so far. I changed the parts that you told me to. See below.

              My Snippit call is like this:
              [[GoogleMapMarker? &apiKey=`ABQIAAAA...` &startID=`27` &tpl=`GMap` &centerPos=`52.18605, 5.693039`]]


              I’m also using Ditto 2.0.2

              My GMap chunk is like this:
              <div id="map" style="float:left; width: 750px; height: 450px;">Loading map...</div>
              <div id="maplinks" style="margin-left: 10px; padding-right: 10px; float: left; display: block; height: 350px; overflow: auto;"></div>


              I used the same GoogleMapMarker Snippet code on page 6 of this thread.

              Now the Snippit has put a marker on the map, only not in the right position. It’s in the middle of the sea, grin undecided

              Any ideas????

              Joshua

                • 36582
                • 463 Posts
                Joshua - make sure you have the correct coordinates in your child (map marker) document(s) - in the *description* field - and that you have the coordinates the right way round.

                Regards

                Chris
                  Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
                  • 12985
                  • 5 Posts
                  Hi Chris,

                  It’s still not working!
                  I set the structure FYI in a image. Maybe this will be easier to explain. See the attachment.

                  Hope to hear from you.

                  Regards Joshua
                    • 20696
                    • 18 Posts
                    Please help,

                    i have just integrated google marker but having problems with it. below is the configs. I am using modxcms version 0.9.6.1p2. the error i am getting is Loading...........

                    page to display map has
                    snippet: [[GoogleMapMarker? &apiKey=`ABQIAAAAuWTmhhoQtLnoPgNPhKHboRSuAuCSbG3LYS0VoSDYtAosM1hm6hTdtNmmVpwLneSZrOG2mACHmKH_iw` &tpl=`GoogleMapMarker` &startID=`6`]]

                    Folder for marker:
                    id: 6

                    Document inside folder ID:6
                    Title: my home
                    Description: 0,38.364258


                    in addtion..........
                    snippet, chunk, template all configured.

                    please help


                      • 19741
                      • 90 Posts
                      @mut: Please check this first: You must enable JavaScript.
                        Bye,
                        Mithrandir