We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21119
    • 4 Posts
    :) doh...

    You’re quite right. I had swapped round the words lat & lng during my testing but not the values!

    Now my ’target’ is dead centre and all is well. And a ship is no longer necessary to reach the address!

    Many thanks for the quick response.

    Neil
      • 4856
      • 55 Posts
      Hello.

      How make snippet GoogleMap to be compartible with IE 6 ?
      It’s works on IE 7, Opera, but not IE 6.
        • 29774
        • 386 Posts
        @cept

        I’m not sure what you’re doing but It works fine on IE6. It will work on any browser that can view maps.google.com.
          Snippets: GoogleMap | FileDetails | Related Plugin: SSL
          • 4856
          • 55 Posts
          I’m inserted
          [!GoogleMap?key=`ABQIAAAA2d46.......` &lat=`54.322681` &lng=`48.354006` &title=`.....` &address=`.......` &width=`480`&height=`500` !]

          to the page content, and added snippet GoogleMap (version 1.2)
          When run on IE6 there is only empty place, and there is a map on many others. huh
            • 29774
            • 386 Posts
            Hi Cept,

            this doesn’t explain why it’s not working for you on IE6, but you’re using an old version of the snippet. Grab the latest version of GoogleMap (1.3) here:
            http://modxcms.com/GoogleMap-658.html

            The parameters have changed quite a bit so be sure to read the description text.

            Let me know how you get on.

            Mark
              Snippets: GoogleMap | FileDetails | Related Plugin: SSL
              • 28260
              • 4 Posts
              Hi guys, has anyone had any success with the $phmode=1 stuff?

              i’ve set 2 maps within the snippet call and they both come out fine, but when i try and place them using the placeholders it doesnt seem to work, the maps still appear next to each other. i have content i need to show between the maps, hence the placeholders...

              im using

              [!GoogleMap? $phmode=`1` &key=`x` &maps=`mapid : mymap1 | title : x | lat : x | lng : x | address1: x | address2 : x | city : x | state : x | width : x | height : x | zip : x | showbubble : x | zoom : x | type : x | typecontrol : x || mapid : mymap2 | title : x | lat : x | lng : x | address1: x | address2 : x | city : x | state : x | width : x | height : x | zip : x | showbubble : x | zoom : x | type : x | typecontrol : x`!] 
              


              and using [+mymap1+] then some content then [+mymap2+]

              note: i’ve tried using $phmode=1 (without the quote), but neither seems to have any effect.

              any help would be appreciated. for my sanity more than for my clients wink

              cheers,
              sqinny.

              [tt]update: turns out it uses an & instead of a $...either the documentation isnt making that clear at all, or im a bit too nooby at snippet calls...s’working now though[/tt]
                • 28763
                • 1 Posts
                I’m searching for a way displaying more than one marker/bubble a map. Has anyone an idea how to proceed?
                  • 29774
                  • 386 Posts
                  @sqinny
                  You’ve got a typo in the snippet call: $phmode=`1`, should be &phmode=`1`.

                  @stylingjoe
                  Multiple points of interest will be in to the next release. There’s no easy way to do this with the snippet at the moment, sorry. You could always check the Google Maps API, it’s really not hard to do multiple POI if you just hard code the js.

                    Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                    • 28260
                    • 4 Posts
                    Hi again guys, has anyone hard coded the js to be able to show a different icon instead of the standard pin? im looking through the api documentation just now and trying to make this happen, by the looks of things it shouldnt be too hard, but thought i’d just check in and see if anyone had done this before and could save me the trouble. if i get mine finished first i’ll post the code here so others can use it.

                    cheers,
                    Sqinny.

                    update: im sure this is quite easy for most people, but on the off chance it helps someone;

                    // create marker and bubble
                    var marker = new GMarker(point);
                    


                    becomes

                    // create marker and bubble
                    var icon = new GIcon();
                    icon.image = "assets/images/godzilla.png";
                    icon.shadow = "assets/images/shadow.png";
                    icon.iconSize = new GSize(80,86);
                    icon.iconAnchor = new GPoint(37, 59);
                    icon.infoWindowAnchor = new GPoint(65, 18);
                    icon.shadowSize = new GSize(120,86);
                    var marker = new GMarker(point, icon);
                    


                    change values/images as appropriate. hope i’ve done this right. please can someone let me know if i’ve ommited anything importnat.

                    keep up the good work everyone!
                    Sqinny.
                      • 28260
                      • 4 Posts
                      Quote from: Jako at Jan 18, 2008, 05:06 PM

                      Just two enhancements:

                      For smaller maps it is nicer not to center the Marker in the middle of the map. To get it a little bit more below regarding the scaling factor you have to add/change two lines:

                      insert after line 56
                      $coord[2] = $lat + (64 / bcpow (2, $zoom));


                      change line 113
                      map.setCenter(new GLatLng('.$coord[2].','.$coord[0].'),'.$zoom.');



                      can anyone tell me how to achieve this on this newest version of the snippet? im presuming this is for an older one as i cant identify the same code fragments and i dont really know enough to do it without help. thanks dudes.

                      sqinny.