3 Replies Latest reply on Mar 25, 2014 8:45 AM by CirrusLogicSoftware

    Mapping GSP and Address issue

    ajayz

      Greetings

       

      I have been using this code to map the street address within my database

       

      "http://local.google.com/maps?" & "q=" & /*Address=*/ Company_Details::Address & "," & /*City=*/ Company_Details::Surburb & "," & /*State=*/ Company_Details::State & "," & /*Zip Code=*/ Company_Details::Postcode & "," & /*Country=*/ Company_Details::Country & ")" & "&iwloc=near&hl=en&ie=UTF8&m=m&z=16&output=embed"

       

      And this code for mapping a GSP (custom web address)

       

      "http://maps.google.com/maps?q="& IpadDump::Latitude& ",+" &IpadDump::Longitude & "&z=17&output=embed"

       

      Both of these display a nice clean window without google search crap..

       

      example

      example..png

      I've been operating FileMaker 13 and this code has been working fine until TODAY - now both databases show the same error: "The Google Maps Embed API must be used in this frame"

       

      How can I fix this so it works again and display the map in a nice clean window as above?

        • 1. Re: Mapping GSP and Address issue
          steve_ssh

          Hello Ajayz,

           

          You might take a look at the following post by francishunger:

           

          https://fmdev.filemaker.com/message/142598

           

          Midway down the page of this thread, there is a post that indicates that Francis may have successfully worked around the scenario that you have encountered.

           

          HTH & best,

           

          -steve

          • 2. Re: Mapping GSP and Address issue
            ajayz

            I used the following fix..

             

            For address:

            "http://local.google.com/maps?" & "q=" & /*Address=*/ Company_Details::Address & "," & /*City=*/ Company_Details::Surburb & "," & /*State=*/ Company_Details::State & "," & /*Zip Code=*/ Company_Details::Postcode & "," & /*Country=*/ "Australia" & "&output=svembed&iwloc=0"

             

            "&output=svembed&iwloc=0"  on the end of the address.

             

            addresses.png

             

            For GPS..

             

            "http://maps.google.com/maps?q="& IpadDump::Latitude& ",+" &IpadDump::Longitude &"&output=svembed&iwloc=0"

             

            This fixes the issues and provides a nice clean map window

            • 3. Re: Mapping GSP and Address issue
              CirrusLogicSoftware

              Hi ajayz,

               

              I just posted a blog today regarding customized Google Maps in FileMaker using Google Maps API v3. With this method, you can customize the maps in just about any way that google can produce them. Way more flexible than the built int functionality. This code could be altered to achieve what you are looking for if you know how to modify Google's API javascript parameters (should be easy peasy). Check out the link here to read the basic tutorial http://bitly.com/1h5pRj8. At the end of the article I have included a FileMaker 13 Solution file along with the necessary PHP file to accomplish this. I sure hope this helps set you in the right direction on getting really slick googl maps in FileMaker. Let me know if you have any questions. Happy coding!