Announcement

Collapse
No announcement yet.

Google Map

Collapse
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Google Map

    How can I use the GoogleAPI with Scriptcase?

  • #2
    Re: Google Map

    Hi,

    In my case i used a control application with 2 fields: "endereco" and "mapa". the first I will be typing an address, the second will be displaying the map.

    onLoad event:

    if(isset([pesq])){
    {endereco} = [pesq];
    {mapa} = "<center><iframe src='http://maps.google.com.br/maps?f=q&h...R&geocode=&q=".[pesq]."&sll=-23.682436,-46.648078&sspn=0.015937,0.020084&ie=UTF8&t=h&z=17& iwloc=addr&output=embed' height=600 width=600></center>";
    }


    onValidate event:

    [pesq]={endereco};



    Access "Application>>Global Variables" and set [pesq] how an "Out" variable



    Vítor Jamil

    Comment


    • #3
      Re: Google Map

      Hi Vitor,
      I am very interested in the topic of google Map and scriptcase. Could you send me more information.

      Thank you,
      Fabian

      Comment


      • #4
        Re: Google Map

        Fabian,

        What do you want to know about Google Maps+Scriptcase ?

        Vítor Jamil

        Comment


        • #5
          Re: Google Map

          Victor,

          I wonder as viewed on Google Earth Map or information contained in a database.

          Thanks a lot
          Fabián

          Comment


          • #6
            Re: Google Map

            You should keep the link in the database. So use that link in the src parameter.


            {mapa} = "<center><iframe src={link} height=600 width=600></center>";

            Comment


            • #7
              Re: Google Map

              Haré las pruebas y le comentaré

              Thanks a lots,
              Fabián

              Comment


              • #8
                Re: Google Map

                Hi Vitor
                I like to include a google map in my scriptcase development.
                I follow the steps that you gave in the past post, but i can't get the application works.
                Can you give a more details?


                i did this:

                1.- Create a Control application
                2.- Create 2 fields formated as "text"
                3.- Insert your code on "On load event"
                4.- insert your code in "On validate"
                5.- Setup the variable as "Out
                5.- Deploy the application

                and nothing, does not work at all.

                Thanks for your help.

                Comment


                • #9
                  Re: Google Map

                  I did not see mention, so I have to ask ...
                  Do you have the Google 'key' setup? I know when I install Google Maps on my Joomla sites, Google requires the 'Key' to display the map.

                  Regards,
                  Scott.

                  Comment


                  • #10
                    Re: Google Map

                    Hello Scott, did you mean the API Key to view the map in app ?
                    If im right, you can check this link here to get the API key http://code.google.com/intl/en-US/apis/maps/signup.html

                    Comment


                    • #11
                      Re: Google Map

                      I am about to attempt to port my PHP/AJAX/Javascript app over to Scriptcase which uses google maps extensively.. I'd be glad to share my experience here if you'd like.

                      Comment


                      • #12
                        Re: Google Map

                        Hi all.
                        this post looks got a success.

                        I just want to know some thing.

                        how can i feed to google maps the kml??
                        is it posible?
                        Regards,
                        Ghulma

                        Comment


                        • #13
                          Re: Google Map

                          Hi wavfact, please share what you have found.

                          Comment


                          • #14
                            Re: Google Map

                            [quote author=Wavfact link=topic=989.msg6837#msg6837 date=1292429319]
                            I am about to attempt to port my PHP/AJAX/Javascript app over to Scriptcase which uses google maps extensively.. I'd be glad to share my experience here if you'd like.
                            [/quote]

                            share it.. why not. thnnks
                            Regards,
                            Ghulma

                            Comment


                            • #15
                              Re: Google Map

                              Maybe I found a small problem with googlemap.

                              I need to vary the Geocode data which will be shown depending on the usergroup of the user.
                              I tried to put in two googlemaps, one only showing the city, the other the complete adress. Both button are showing
                              the Geocode data of the last button, so it depends on the order of the google maps...

                              Is there a work around, may be a live change of the geocode data or the order of the fields???

                              Comment

                              Working...
                              X