GoogleMapsbyCoords ( Latitute ; Longitude ; Zoom ; WebViewerObjectName )
Rate this function: Average rating: 3.8 (6 votes) Discuss this Custom Function
Yvonne Dutreaux, self
none
Shows embedded Google Map in a webviewer by Lat/Lon coordinates
Sample Input:
| GoogleMapsbyCoords ( 37.66395 ; -122.4181 ; 12 ; "web" ) |
|
Sample Output:
| data:text/html, <style type='text/css'> html,body { overflow:hidden; } </style> <html> <head> <title>NavText</title> </head> <body bgcolor='#FFFFFF' TopMargin='0' style='border:0'> <iframe width='-10' height='-25' frameborder='0' scrolling='15' marginheight='0' marginwidth='0' src='http://local.google.com/maps?q=37.66395,-122.4181&z=12&li=37.66395,-122.4181&output=embed&iwloc=0'> </iframe> </body> </html> |
|
Description:
Jeremy Upton uploaded a CF for easy formatting of code for a web viewer showing an embedded Google map that used address information. Here is a modified variation that uses latitude and longitude information if you have it.
I also added a parameter so you can name the web viewer object anything you wish and pass it via the custom function.
Update to add code to center the maps on the coordinates in case the coordinates do not correspond to an address. otherwise the map will center on the nearest city or county seat, which is not always helpful. A green arrow will show your point, the A marker will show the nearest address, city center or county seat, whichever google can determine first.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 2. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 3. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 4. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
| 5. |
XORbin( bin0 ; bin1 ; "" ) |
| |
(Sat, Mar 13, 4:35pm) |
| 6. |
cfMatch ( value_to_test; match_Value; match_operator ) |
| |
(Thu, Mar 11, 10:45pm) |
| 7. |
DeleteMiddleText ( Value ; StringStart ; StringEnd ) |
| |
(Wed, Mar 10, 8:27am) |
| 8. |
Codify( theText; code_option ) |
| |
(Sun, Mar 07, 8:17pm) |
 |
|
The correct spelling is Latitude, not Latitute.
Emilio Faro, Vigo, Spain
November 12, 2009 11:25pm