We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2896
    • 70 Posts
    Quote from: bunk58 at Mar 02, 2007, 06:43 PM

    I’ve used the Document Setting panel and filled the Description in as School, the Title in as 52.347072,-1.136109.


    I believe it is the other way around: description=52.347072,-1.136109 and title=School

      • 4310
      • 2,310 Posts
      Quote from: BB2 at Mar 03, 2007, 02:45 AM

      Quote from: bunk58 at Mar 02, 2007, 06:43 PM

      I’ve used the Document Setting panel and filled the Description in as School, the Title in as 52.347072,-1.136109.


      I believe it is the other way around: description=52.347072,-1.136109 and title=School


      Sorry that was a typo by me that I’ve corrected in my previous post I do have it the right way round but no markers!
      So I still need help.
      Thanks
      David
        • 2896
        • 70 Posts
        Quote from: bunk58 at Mar 02, 2007, 06:43 PM

        Snippet call is...
        [!GoogleMapMarker? &apiKey=`ABQIAAAAYcoc9A-duXiuiTXWZoAygxRD_hqpplOZCJsBCiUszznx5GU1KBRd839DOLY7gxsfcd_g4Dor5G0qZw` &mapControl=`large` &mapType=`hybrid` &defaultZoom=`12` &centerPos=`52.347216,-1.135519` &tpl=`GoogleMapMarker`&startId=`123`!]



        I notice two small typos in your call: there is no space between `GoogleMapMarker` and &startId
        + I also have the call &startID with capitals instead of Id
          • 4310
          • 2,310 Posts
          I have the lower case d in ID as a fix from a previous post in this thread for getting stuck at "loading map".
          I tried adding the space before
          &startId
          but it made no difference.
          Thanks for trying!
          David
            • 2896
            • 70 Posts
            The only difference i also see is a param to the css ...

            I have my call as follows:
            [[GoogleMapMarker? &apiKey=`ABQIAAAAUY1UzZYFyZwBaK_-KjylfBSkzulCMhGJfukUGz2zyDKajesJgxR31YTclEdWiZMt-lQB_SPJhlpWbQ` &tpl=`GoogleMapMarker` &startID=`44` &linksClass=`maplink`]]


            + the css:
            /* maplinks */
            
            .maplink a {
            
            	clear: both; 
            	font-weight: bold;	
            	font-size: 100%;
            	padding: 4px 0px 4px 0px;
            
            }
            
            .maplink a:hover {
            
            	color: #8A2337; 
            
            	font-weight: bold;	
            	font-size: 100%;
            	padding: 4px 0px 4px 0px;
            
            }



            Do you have the chunk GoogleMapCode??
            with
            var point = new GLatLng([+description+]);
            var marker = createMarker(point, '[+title+]', '[+summary+]');
            map.addOverlay(marker);


            I also have the 0.9.5 version, perhaps the upgrade will solve your problem ...
              • 2896
              • 70 Posts
              What I’m also thinking of now is:the structure of maps/documents in your tree:

              DocumentwithcallandMap (ID=40) - published and in show in menu
              - subfolder unpublished - container for markers (ID=41)
              -- children with markers (ID=42 etc)

              Then the call to Googlemap is on page 40 with &startID=41

              Is this how you have it?

              Then I’m at a loss .... huh


                • 4310
                • 2,310 Posts
                I haven’t bothered with the css yet, thought I’d do it if and when it’s running correctly.
                Yes I do have the GoogleMapCode chunk.
                I have the folder setup just as you suggest, I have tried with the template set to blank and not, cached and not.
                It must be me!
                I’ll see if the v09.5 upgrade helps.
                Thanks
                David
                  • 2896
                  • 70 Posts
                  ok, good luck!
                    • 7923
                    • 4,213 Posts
                    The reason why you don’t have any markers is that you use &startId in the snippet call when it should be startID. And if using startID breaks your map, it means that there is some javascript error on the page. I would guess that it’s either you are using line breaks in the marker document content or you have quotes in it and they are not escaped. In anycase, use &startID and give a link to the site so I can see what’s going on..


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 4310
                      • 2,310 Posts
                      I’ve got it working now.
                      The problem seemed to be :
                      Using 0.9.2 the map won’t display with "startID" but will with "startId" but that means the markers won’t display because that part of the snippet call fails.
                      With 0.9.5 the map won’t diplay with "startId" because the whole snippet call fails. Once you use "startID" the map works.
                      I still couldn’t get the markers working so I deleted all but one of them.
                      Suddenly it worked map and markers, obviously a problem with the other markers. I duplicated the good one and deleted the bad ones, still no go neither the map or markers!
                      I checked the rendered page source code and saw the javascript had a problem near the bottom after the word Finland....
                      // This function picks up the click and opens the corresponding info window
                      				function myclick(i) {
                      					gmarkers[i].openInfoWindowHtml(htmls[i]);
                      				}var point = new GLatLng(52.347072,-1.136109);
                      		var marker = createMarker(point, 'School', 'This is the marker for the school');
                      		map.addOverlay(marker);var point = new GLatLng(63.098332,23.056698);
                      		var marker = createMarker(point, 'Finland', 'Somewhere in Finland 
                      ');

                      I went back to the duplicated marker and found a space after the word Finland, deleted that in source view, didn’t work, went back and deleted it with the editor turned off and now it works with multiple markers!
                      Thanks for the snippet Doze, didn’t see your reply until afterwards!
                      Regards
                      David