We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33223
    • 10 Posts
    Hi All,

    I’m totally new to Modx, (actually I tried to get it working ages ago but didn’t have the time), but have managed to install it and even got FURL’s working perfectly.
    A project that I have running with another CMS involves a new google map with each entry, by way of a plug where I simply paste a small piece of code with the required co-ordinates, (lat/lon), and everything works fine.

    What i want to do is take the same project but use Modx.

    I have installed GoogleMapMarker which is great and works a treat but I can only have 1 set of co-ordinates in the snippet.

    Is there anything that I haven’t found yet that will allow the same functions as GoogleMapMarker but with a fresh set of co-ordinates to be entered with each new post?

    Thanks loads guys and great ready for tons of questions from me!

    UPDATE: I found GoogleMap and this so nearly allows me to produce exactly what I want BUT, does anyone know how to change the map type? i want to change it to hybrid, where currently it’s set to map but I cannot find the settings anywhere.

    Last question, for now, on this ... how can i include html in the bubble? for example, to reference an image.
      • 7923
      • 4,213 Posts
      Quote from: you_know_me at Nov 03, 2006, 06:31 PM

      I have installed GoogleMapMarker which is great and works a treat but I can only have 1 set of co-ordinates in the snippet.

      Is there anything that I haven’t found yet that will allow the same functions as GoogleMapMarker but with a fresh set of co-ordinates to be entered with each new post?
      What do you mean by this? You set the initial center position for the map in the snippet call and define a folder where you can have as many "marker documents" as you want and they will be generated as pins in the google map. To do multiple google maps with different pins, just define different folders in the snippet call where to get the marker documents..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 33223
        • 10 Posts
        Thanks for the reply but I have since found GoogleMap snippet, as mentioned above.

        So now I need to know ...

        "UPDATE: I found GoogleMap and this so nearly allows me to produce exactly what I want BUT, does anyone know how to change the map type? i want to change it to hybrid, where currently it’s set to map but I cannot find the settings anywhere.

        Last question, for now, on this ... how can i include html in the bubble? for example, to reference an image."
          • 16732
          • 592 Posts
          To change the map type to hybrid a think you have to add this line :
          map.setMapType(G_HYBRID_MAP);
          


          After snippet line 111 :

          if (GBrowserIsCompatible()) {  
          map.setMapType(G_HYBRID_MAP);
          ...
          
            • 33223
            • 10 Posts
            That’s the one, thanks loads.