0 Replies Latest reply on Aug 21, 2013 9:30 AM by TomWaddington

    FM12 GetMap Zoom Control

    TomWaddington

      Title

      FM12 GetMap Zoom Control

      Post

           I am using the Custom Function GetMap with the following modifications:

           Let     (
               [
               address =     Substitute     (
                                       address1 & " " &
                                       city & " " &
                                       state & " " &
                                       postalCode & " " &
                                       country ;
                                       " " ; "+"
                                       ) ;
               size =         GetLayoutObjectAttribute ( webViewerName ; "width" ) & "x" & GetLayoutObjectAttribute ( webViewerName ; "height" )
               ] ;

               "http://maps.google.com/maps/api/staticmap?center="
                       & address &
                           "&zoom=" & zoom &
                               "&markers="
                                   & address &
                                       "&size="
                                           & size &
                                               "&sensor=false"
               )

           What I am trying to accomplish is to add a "Zoom In / Zoom Out" function to this like the  "+" and "-" buttons on the standard Google map display.  What do I have to do to achieve this?

           My "Custom Web Address" in my Web Viewer Setup that I'm using is:

           GetMap ( "Map" ; 14 ; Phone Book::Residence Street Address ;Phone Book::City ; Phone Book::Province ; Phone Book::Postal Code ; Phone Book::Country )

           This works exactly like I want it to except for the lack of a zoom control.