I plan to display a Google map on the admin side that when clicked on will 
store the lat and long for that record in the db. This will get around their 
geocoding limitations.


> To Ray: no it isn't. custom code.
> 
> To Tony: I can do geo code lookups fro free with Google's API ... 
> just
> limited to how many a day.
> 
> 
> Sample code for the geocode is here. It's a JavaScript function. If I 
> pull
> the data out of the DB .. and want to show the resulting map on the 
> page,
> without the submission of a form to do so ...
> 
> Is the call to the function as easy as this:
> 
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";
> xmlns:v="urn:schemas-microsoft-com:vml">
  
> <head>
    
> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    
> <title>Google Maps API Example: Simple Geocoding</title>
    
> <script src="http://maps.google.com/maps?file=api&amp;v=2.
x&amp;key=ABQIAAAAzr2EBOXUKn> 
m_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA"
> type="text/javascript"></script>
    
> <script type="text/javascript">
> 
    
> var map = null;
    
> var geocoder = null;
> 
    
> function initialize() {
      
> if (GBrowserIsCompatible()) {
        
> map = new GMap2(document.getElementById("map_canvas"));
        
> map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        
> geocoder = new GClientGeocoder();
      
> }
    
> }
> 
    
> function showAddress(address) {
      
> if (geocoder) {
        
> geocoder.getLatLng(
          
> address,
          
> function(point) {
            
> if (!point) {
              
> alert(address + " not found");
            
> } else {
              
> map.setCenter(point, 13);
              
> var marker = new GMarker(point);
              
> map.addOverlay(marker);
              
> marker.openInfoWindowHtml(address);
            
> }
          
> }
        
> );
      
> }
    
> }
    
> </script>
  
> </head>
> 
  
> <body onload="initialize()" onunload="GUnload()">
    
> <form action="#" onsubmit="showAddress(this.address.value); return 
> false">
      
> <p>
        
> <input type="text" size="60" name="address" value="1600
> Amphitheatre Pky, Mountain View, CA" />
        
> <input type="submit" value="Go!" />
      
> </p>
      
> <div id="map_canvas" style="width: 500px; height: 300px"></div>
    
> </form>
> 
  
> </body>
> </html>
> 
> 
> since Im not even close to being a JS guru - im lost as to how to
> force it to show the address.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:290029
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to