GoogleMapsbyCoords ( Latitute ; Longitude ; Zoom ; WebViewerObjectName )
Rate this function: Average rating: 3.4 (14 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. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 2. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 3. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 4. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 5. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 6. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 7. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 8. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
 |
|
The correct spelling is Latitude, not Latitute.
Emilio Faro, Vigo, Spain
November 12, 2009 11:25pm