Re: [WebDNA] WebDNA and Google Geo Tagging

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 110055
interpreted = N
texte = --Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks for this however I think there is maybe some links to java stuff = or something missing from the page header as all I get is the form, no = map or any activity at all.=20 Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On 20 Dec 2012, at 14:51, Tom Duke wrote: > Steve, >=20 > Here goes - it's unedited from the snippet used in my CMS - but it = should work as a good starting point for you. >=20 > Take care > - Tom >=20 >=20 >=20 > 
> Location Map >=20 >=20 >
>=20 > [if ("[url][_sLAT][/url]" =3D = "")][then][text]sLAT=3D53.41291[/text][/then][else][text]sLAT=3D[_sLAT][/t= ext][/else][/if] > [if ("[url][_sLNG][/url]" =3D = "")][then][text]sLNG=3D-8.24389[/text][/then][else][text]sLNG=3D[_sLNG][/t= ext][/else][/if] > [if ("[url][_sZOOM][/url]" =3D = "")][then][text]sZOOM=3D6[/text][/then][else][text]sZOOM=3D[_sZOOM][/text]= [/else][/if] >=20 >=20 >  >  =09 > [/!][listwords words=3D[url][grep search=3D(
|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hideif = [index]=3D1], [/hideif][word][/listwords][!] > =09 > [/!][/hideif]" style=3D"width: 400px;"/> >  > [!] > [/!]

>=20 > 
> 
> 

>=20 > [!] > [!] > [!]
>=20 >=20 > >=20 > >=20 >=20 > 

> =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thanks for this however I think there is maybe some links to java = stuff or something missing from the page header as all I get is the = form, no map or any activity at = all. 

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asylum Interactive Ltd
Tel +44 1330 860550 Fax +44 1330 860880
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.asylumweb.com
Email: steve@asylumweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D



On 20 Dec 2012, at 14:51, Tom Duke <tom@revolutionaries.ie> = wrote:

Steve,

Here = goes - it's unedited from the snippet used in my CMS - but it should = work as a good starting point for you.

Take care
- Tom



= <fieldset>
<legend>Location = Map</legend>


<div = class=3D"clearfix" style=3D" width: 100%;">

[if ("[url][_sLAT][/url]" =3D = "")][then][text]sLAT=3D53.41291[/text][/then][else][text]sLAT=3D[_sLAT][/t= ext][/else][/if]
[if = ("[url][_sLNG][/url]" =3D = "")][then][text]sLNG=3D-8.24389[/text][/then][else][text]sLNG=3D[_sLNG][/t= ext][/else][/if]
[if ("[url][_sZOOM][/url]" =3D = "")][then][text]sZOOM=3D6[/text][/then][else][text]sZOOM=3D[_sZOOM][/text]= [/else][/if]


<label = for=3D"_sGEOADDRESS">Address to Geocode</label>
= <input id=3D"_sGEOADDRESS" name=3D"_sGEOADDRESS" size=3D"120" = type=3D"text" value=3D"[hideif = [url][_sADDRESS][/url]=3D[url][raw][_sADDRESS][/raw][/url]][!]
=
[/!][listwords words=3D[url][grep = search=3D(<br = />|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hi= deif [index]=3D1], [/hideif][word][/listwords][!]
=
[/!][/hideif]" style=3D"width: = 400px;"/>
<button = onclick=3D"javascript:showAddress();return false;" style=3D"" />Map = address &#8594;</button>
[!]<button = onclick=3D"javascript:resetAddress();return false;" = />Reset</button>
= [/!]<button onclick=3D"javascript:clearAddress();return = false;" />Clear</button><br /><br />

<div id=3D"message" = style=3D"border: 1px solid #000; padding: 15px; background: = #EFEFEF;display: none; margin: 0 0 10px 0; width: = 570px;"></div>
= <div id=3D"map1" style=3D"width: 97%; height: 300px; = clear:both; border:3px solid #ccc;"></div>
<p = style=3D"margin: 0;"><span id=3D"thelat"></span><span = id=3D"thelng"></span><span = id=3D"thezoom"></span></p>

[!]<label for=3D"frmLat" style=3D"width: 180px; = text-align: right; margin-right: 3px;">Latitude
[/!]<input type=3D"hidden" name=3D"_sLAT" = value=3D"[_sLAT]" id=3D"frmLat" style=3D"width: 100px;" = /></label>
[!]<label for=3D"frmLon" style=3D"width: = 180px; text-align: right; margin-right: 3px;">Longitude
[/!]<input type=3D"hidden" name=3D"_sLNG" = value=3D"[_sLNG]" id=3D"frmLon" style=3D"width: 100px;" = /></label>
[!]<label for=3D"frmZoom" style=3D"width: = 180px; text-align: right; margin-right: 3px;">Zoom
[/!]<input type=3D"hidden" name=3D"_sZOOM" = value=3D"[_sZOOM]" id=3D"frmZoom" style=3D"width: 100px;" = /></label><br />


    = <noscript><b>JavaScript must be enabled in order for you to = use Google Maps.</b> 
      However, it seems JavaScript is either disabled or = not supported by your browser. 
      To view Google Maps, enable = JavaScript by changing your browser options, and then 
      try again.
  =   </noscript>

    <script = type=3D"text/javascript">
  =   //<![CDATA[
    
    if (GBrowserIsCompatible()) = { 

      // =3D=3D=3D=3D=3D=3D Plot a = marker after positive reponse to "did you mean" =3D=3D=3D=3D=3D=3D
      function place(lat,lng) = {
        var marker = =3D new GMarker (new GLatLng(lat, lng), {draggable:true});
        var point =3D new = GLatLng(lat,lng);
        = map.setCenter(point,15); 
  =       document.getElementById("message").innerHTML =3D = "";
        = document.getElementById("message").style.display=3D"none";
        = map.addOverlay(marker);

= marker.openInfoWindowHtml('<div style=3D"width: 205px; height: = 50px; font-size: .9em;"><strong>Check = this:</strong><br />If this location is wrong then drag = marker to correct location.</div>');
= document.getElementById("frmLat").value =3D lat;
= document.getElementById("frmLon").value =3D lng;
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());
});

  =     }


function resetAddress() = {
= map.clearOverlays();
var point =3D new = GLatLng([sLAT],[sLNG]);
var = marker =3D new GMarker(point, {draggable:true});
= map.addOverlay(marker);
= map.setCenter(point,[sZOOM]);
= document.getElementById("frmLat").value =3D ("[_sLAT]");
= document.getElementById("frmLon").value =3D = ("[_sLNG]");
= document.getElementById("frmZoom").value =3D ("[_sZOOM]");
= document.getElementById("_sGEOADDRESS").value =3D ("[hideif = [url][_sADDRESS][/url]=3D[url][raw][_sADDRESS][/raw][/url]][!]

= [/!][listwords words=3D[url][grep search=3D(<br = />|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hi= deif [index]=3D1], [/hideif][word][/listwords][!]
=
[/!][/hideif]");

//= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
//= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
//= document.getElementById("thezoom").innerHTML =3D ("Zoom: = " + map.getZoom());

= document.getElementById("message").style.display=3D"none";

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());
});
= }

= function clearAddress() {
= map.clearOverlays();
var point =3D new = GLatLng(53.41291,-8.24389);
var = marker =3D new GMarker(point, {draggable:true});
= map.addOverlay(marker);
= map.setCenter(point,6);
= document.getElementById("frmLat").value =3D (point.y);
= document.getElementById("frmLon").value =3D (point.x);
= document.getElementById("frmZoom").value =3D map.getZoom();

= document.getElementById("_sGEOADDRESS").value =3D ("");
= document.getElementById("frmLat").value =3D ("");
= document.getElementById("frmLon").value =3D ("");
= document.getElementById("frmZoom").value =3D ("");

= document.getElementById("thelat").innerHTML =3D ("");
= document.getElementById("thelng").innerHTML =3D ("");
= document.getElementById("thezoom").innerHTML =3D ("");


= document.getElementById("message").style.display=3D"none";

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());

= });
= }


    =   var map =3D new GMap(document.getElementById("map1"));
      map.addControl(new = GLargeMapControl());
    =   map.addControl(new GMapTypeControl());
      map.setCenter(new = GLatLng([sLAT],[sLNG]),[sZOOM]); 
      = resetAddress();

= GEvent.addListener(map, "zoomend",function() {
= document.getElementById("frmZoom").value =3D = map.getZoom();
}); 


    =   // =3D=3D=3D=3D=3D=3D Create a Client Geocoder =3D=3D=3D=3D=3D=3D
      var geo =3D new = GClientGeocoder(); 

      // =3D=3D=3D=3D=3D= =3D Array for decoding the failure codes =3D=3D=3D=3D=3D=3D
      var reasons=3D[];
      reasons[G_GEO_SUCCESS]   =          =3D "Success";
      = reasons[G_GEO_MISSING_ADDRESS]    =3D "Missing Address: The = address was either missing or had no value.";
      = reasons[G_GEO_UNKNOWN_ADDRESS]    =3D "Unknown Address: =  No corresponding geographic location could be found for the = specified address.";
      = reasons[G_GEO_UNAVAILABLE_ADDRESS]=3D "Unavailable Address:  The = geocode for the given address cannot be returned due to legal or = contractual reasons.";
      reasons[G_GEO_BAD_KEY]         =    =3D "Bad Key: The API key is either invalid or does not = match the domain for which it was given";
      = reasons[G_GEO_TOO_MANY_QUERIES]   =3D "Too Many Queries: The daily = geocoding quota for this site has been exceeded.";
      = reasons[G_GEO_SERVER_ERROR]       =3D "Server error: The = geocoding request could not be successfully processed.";
      
      // =3D=3D=3D=3D=3D=3D Geocoding =3D=3D=3D=3D=3D=3D
      function showAddress() = {
        var search = =3D document.getElementById("_sGEOADDRESS").value;
        // =3D=3D=3D=3D=3D=3D = Perform the Geocoding =3D=3D=3D=3D=3D=3D       =  
        = geo.getLocations(search, function (result)
          = { 
        =     // If that was successful
            if = (result.Status.code =3D=3D G_GEO_SUCCESS) {

  =           // Clear other markers
= map.clearOverlays();

// =3D=3D=3D=3D=3D If there was = more than one result, "ask did you mean" on them all =3D=3D=3D=3D=3D
=
= if (result.Placemark.length > 1) { 
            =     document.getElementById("message").innerHTML =3D "Did you = mean:";
        =         // Loop through the results
                for (var i=3D0; = i<result.Placemark.length; i++) {
              =     var p =3D result.Placemark[i].Point.coordinates;
        = document.getElementById("message").style.display=3D"block";
            =       document.getElementById("message").innerHTML +=3D = "<br>"+(i+1)+": <a href=3D'javascript:place(" = +p[1]+","+p[0]+")'>"+ = result.Placemark[i].address+"<\/a>";
            =     }
      =         }
  =             // =3D=3D=3D=3D=3D If there = was a single marker =3D=3D=3D=3D=3D
 =             else {
            =     document.getElementById("message").innerHTML =3D = "";
          =       var p =3D = result.Placemark[0].Point.coordinates;
                = place(p[1],p[0]);
      =         }
  =             
            = }
          =   // =3D=3D=3D=3D=3D=3D Decode the error status =3D=3D=3D=3D=3D=3D
            = else {
        =       var reason=3D"Code "+result.Status.code;
              = if (reasons[result.Status.code]) {
            =     reason =3D reasons[result.Status.code]
              = } 
        =       alert('Could not find "'+search+ '" ' + = reason);
            = }
          = }
        = );
      }

    }
  =   
    // display a = warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps = API is not compatible with this browser");
    }

    = // This Javascript is based on code provided by the
    // Community Church Javascript = Team

  =   //]]>
    = </script>


= </fieldset><br />
 
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] WebDNA and Google Geo Tagging (Steve Craig 2012)
  2. Re: [WebDNA] WebDNA and Google Geo Tagging (Tom Duke 2012)
  3. Re: [WebDNA] WebDNA and Google Geo Tagging (Steve Craig 2012)
  4. Re: [WebDNA] WebDNA and Google Geo Tagging ("Terry Wilson" 2012)
  5. Re: [WebDNA] WebDNA and Google Geo Tagging (Tom Duke 2012)
  6. Re: [WebDNA] WebDNA and Google Geo Tagging (Steve Craig 2012)
  7. Re: [WebDNA] WebDNA and Google Geo Tagging (Tom Duke 2012)
  8. Re: [WebDNA] WebDNA and Google Geo Tagging (Steve Craig 2012)
  9. Re: [WebDNA] WebDNA and Google Geo Tagging (Tom Duke 2012)
  10. [WebDNA] WebDNA and Google Geo Tagging (Steve Craig 2012)
--Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks for this however I think there is maybe some links to java stuff = or something missing from the page header as all I get is the form, no = map or any activity at all.=20 Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Asylum Interactive Ltd Tel +44 1330 860550 Fax +44 1330 860880 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.asylumweb.com Email: steve@asylumweb.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On 20 Dec 2012, at 14:51, Tom Duke wrote: > Steve, >=20 > Here goes - it's unedited from the snippet used in my CMS - but it = should work as a good starting point for you. >=20 > Take care > - Tom >=20 >=20 >=20 > 
> Location Map >=20 >=20 >
>=20 > [if ("[url][_sLAT][/url]" =3D = "")][then][text]sLAT=3D53.41291[/text][/then][else][text]sLAT=3D[_sLAT][/t= ext][/else][/if] > [if ("[url][_sLNG][/url]" =3D = "")][then][text]sLNG=3D-8.24389[/text][/then][else][text]sLNG=3D[_sLNG][/t= ext][/else][/if] > [if ("[url][_sZOOM][/url]" =3D = "")][then][text]sZOOM=3D6[/text][/then][else][text]sZOOM=3D[_sZOOM][/text]= [/else][/if] >=20 >=20 >  > [url][_sADDRESS][/url]=3D[url][raw][_sADDRESS][/raw][/url]][!] > =09 > [/!][listwords words=3D[url][grep search=3D(
|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hideif = [index]=3D1], [/hideif][word][/listwords][!] > =09 > [/!][/hideif]" style=3D"width: 400px;"/> >  > [!] > [/!]

>=20 > 
> 
> 

>=20 > [!] > [!] > [!]
>=20 >=20 > >=20 > >=20 >=20 > 

> =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Thanks for this however I think there is maybe some links to java = stuff or something missing from the page header as all I get is the = form, no map or any activity at = all. 

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Asylum Interactive Ltd
Tel +44 1330 860550 Fax +44 1330 860880
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.asylumweb.com
Email: steve@asylumweb.com
Skype: s.craig - iChat: steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D



On 20 Dec 2012, at 14:51, Tom Duke <tom@revolutionaries.ie> = wrote:

Steve,

Here = goes - it's unedited from the snippet used in my CMS - but it should = work as a good starting point for you.

Take care
- Tom



= <fieldset>
<legend>Location = Map</legend>


<div = class=3D"clearfix" style=3D" width: 100%;">

[if ("[url][_sLAT][/url]" =3D = "")][then][text]sLAT=3D53.41291[/text][/then][else][text]sLAT=3D[_sLAT][/t= ext][/else][/if]
[if = ("[url][_sLNG][/url]" =3D = "")][then][text]sLNG=3D-8.24389[/text][/then][else][text]sLNG=3D[_sLNG][/t= ext][/else][/if]
[if ("[url][_sZOOM][/url]" =3D = "")][then][text]sZOOM=3D6[/text][/then][else][text]sZOOM=3D[_sZOOM][/text]= [/else][/if]


<label = for=3D"_sGEOADDRESS">Address to Geocode</label>
= <input id=3D"_sGEOADDRESS" name=3D"_sGEOADDRESS" size=3D"120" = type=3D"text" value=3D"[hideif = [url][_sADDRESS][/url]=3D[url][raw][_sADDRESS][/raw][/url]][!]
=
[/!][listwords words=3D[url][grep = search=3D(<br = />|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hi= deif [index]=3D1], [/hideif][word][/listwords][!]
=
[/!][/hideif]" style=3D"width: = 400px;"/>
<button = onclick=3D"javascript:showAddress();return false;" style=3D"" />Map = address &#8594;</button>
[!]<button = onclick=3D"javascript:resetAddress();return false;" = />Reset</button>
= [/!]<button onclick=3D"javascript:clearAddress();return = false;" />Clear</button><br /><br />

<div id=3D"message" = style=3D"border: 1px solid #000; padding: 15px; background: = #EFEFEF;display: none; margin: 0 0 10px 0; width: = 570px;"></div>
= <div id=3D"map1" style=3D"width: 97%; height: 300px; = clear:both; border:3px solid #ccc;"></div>
<p = style=3D"margin: 0;"><span id=3D"thelat"></span><span = id=3D"thelng"></span><span = id=3D"thezoom"></span></p>

[!]<label for=3D"frmLat" style=3D"width: 180px; = text-align: right; margin-right: 3px;">Latitude
[/!]<input type=3D"hidden" name=3D"_sLAT" = value=3D"[_sLAT]" id=3D"frmLat" style=3D"width: 100px;" = /></label>
[!]<label for=3D"frmLon" style=3D"width: = 180px; text-align: right; margin-right: 3px;">Longitude
[/!]<input type=3D"hidden" name=3D"_sLNG" = value=3D"[_sLNG]" id=3D"frmLon" style=3D"width: 100px;" = /></label>
[!]<label for=3D"frmZoom" style=3D"width: = 180px; text-align: right; margin-right: 3px;">Zoom
[/!]<input type=3D"hidden" name=3D"_sZOOM" = value=3D"[_sZOOM]" id=3D"frmZoom" style=3D"width: 100px;" = /></label><br />


    = <noscript><b>JavaScript must be enabled in order for you to = use Google Maps.</b> 
      However, it seems JavaScript is either disabled or = not supported by your browser. 
      To view Google Maps, enable = JavaScript by changing your browser options, and then 
      try again.
  =   </noscript>

    <script = type=3D"text/javascript">
  =   //<![CDATA[
    
    if (GBrowserIsCompatible()) = { 

      // =3D=3D=3D=3D=3D=3D Plot a = marker after positive reponse to "did you mean" =3D=3D=3D=3D=3D=3D
      function place(lat,lng) = {
        var marker = =3D new GMarker (new GLatLng(lat, lng), {draggable:true});
        var point =3D new = GLatLng(lat,lng);
        = map.setCenter(point,15); 
  =       document.getElementById("message").innerHTML =3D = "";
        = document.getElementById("message").style.display=3D"none";
        = map.addOverlay(marker);

= marker.openInfoWindowHtml('<div style=3D"width: 205px; height: = 50px; font-size: .9em;"><strong>Check = this:</strong><br />If this location is wrong then drag = marker to correct location.</div>');
= document.getElementById("frmLat").value =3D lat;
= document.getElementById("frmLon").value =3D lng;
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());
});

  =     }


function resetAddress() = {
= map.clearOverlays();
var point =3D new = GLatLng([sLAT],[sLNG]);
var = marker =3D new GMarker(point, {draggable:true});
= map.addOverlay(marker);
= map.setCenter(point,[sZOOM]);
= document.getElementById("frmLat").value =3D ("[_sLAT]");
= document.getElementById("frmLon").value =3D = ("[_sLNG]");
= document.getElementById("frmZoom").value =3D ("[_sZOOM]");
= document.getElementById("_sGEOADDRESS").value =3D ("[hideif = [url][_sADDRESS][/url]=3D[url][raw][_sADDRESS][/raw][/url]][!]

= [/!][listwords words=3D[url][grep search=3D(<br = />|%0B)&replace=3D|][_sADDRESS][/grep][/url]&delimiters=3D|][hi= deif [index]=3D1], [/hideif][word][/listwords][!]
=
[/!][/hideif]");

//= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
//= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
//= document.getElementById("thezoom").innerHTML =3D ("Zoom: = " + map.getZoom());

= document.getElementById("message").style.display=3D"none";

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());
});
= }

= function clearAddress() {
= map.clearOverlays();
var point =3D new = GLatLng(53.41291,-8.24389);
var = marker =3D new GMarker(point, {draggable:true});
= map.addOverlay(marker);
= map.setCenter(point,6);
= document.getElementById("frmLat").value =3D (point.y);
= document.getElementById("frmLon").value =3D (point.x);
= document.getElementById("frmZoom").value =3D map.getZoom();

= document.getElementById("_sGEOADDRESS").value =3D ("");
= document.getElementById("frmLat").value =3D ("");
= document.getElementById("frmLon").value =3D ("");
= document.getElementById("frmZoom").value =3D ("");

= document.getElementById("thelat").innerHTML =3D ("");
= document.getElementById("thelng").innerHTML =3D ("");
= document.getElementById("thezoom").innerHTML =3D ("");


= document.getElementById("message").style.display=3D"none";

= marker.enableDragging();
= GEvent.addListener(marker,"dragend", function () {
= map.closeInfoWindow ();
= document.getElementById("frmLat").value =3D = marker.getPoint().lat();
= document.getElementById("frmLon").value =3D = marker.getPoint().lng();
= document.getElementById("frmZoom").value =3D = map.getZoom();

= document.getElementById("thelat").innerHTML =3D ("Lat: " + = marker.getPoint().lat() + ", ");
= document.getElementById("thelng").innerHTML =3D ("Lng: " + = marker.getPoint().lng() + ", ");
= document.getElementById("thezoom").innerHTML =3D ("Zoom: " + = map.getZoom());

= });
= }


    =   var map =3D new GMap(document.getElementById("map1"));
      map.addControl(new = GLargeMapControl());
    =   map.addControl(new GMapTypeControl());
      map.setCenter(new = GLatLng([sLAT],[sLNG]),[sZOOM]); 
      = resetAddress();

= GEvent.addListener(map, "zoomend",function() {
= document.getElementById("frmZoom").value =3D = map.getZoom();
}); 


    =   // =3D=3D=3D=3D=3D=3D Create a Client Geocoder =3D=3D=3D=3D=3D=3D
      var geo =3D new = GClientGeocoder(); 

      // =3D=3D=3D=3D=3D= =3D Array for decoding the failure codes =3D=3D=3D=3D=3D=3D
      var reasons=3D[];
      reasons[G_GEO_SUCCESS]   =          =3D "Success";
      = reasons[G_GEO_MISSING_ADDRESS]    =3D "Missing Address: The = address was either missing or had no value.";
      = reasons[G_GEO_UNKNOWN_ADDRESS]    =3D "Unknown Address: =  No corresponding geographic location could be found for the = specified address.";
      = reasons[G_GEO_UNAVAILABLE_ADDRESS]=3D "Unavailable Address:  The = geocode for the given address cannot be returned due to legal or = contractual reasons.";
      reasons[G_GEO_BAD_KEY]         =    =3D "Bad Key: The API key is either invalid or does not = match the domain for which it was given";
      = reasons[G_GEO_TOO_MANY_QUERIES]   =3D "Too Many Queries: The daily = geocoding quota for this site has been exceeded.";
      = reasons[G_GEO_SERVER_ERROR]       =3D "Server error: The = geocoding request could not be successfully processed.";
      
      // =3D=3D=3D=3D=3D=3D Geocoding =3D=3D=3D=3D=3D=3D
      function showAddress() = {
        var search = =3D document.getElementById("_sGEOADDRESS").value;
        // =3D=3D=3D=3D=3D=3D = Perform the Geocoding =3D=3D=3D=3D=3D=3D       =  
        = geo.getLocations(search, function (result)
          = { 
        =     // If that was successful
            if = (result.Status.code =3D=3D G_GEO_SUCCESS) {

  =           // Clear other markers
= map.clearOverlays();

// =3D=3D=3D=3D=3D If there was = more than one result, "ask did you mean" on them all =3D=3D=3D=3D=3D
=
= if (result.Placemark.length > 1) { 
            =     document.getElementById("message").innerHTML =3D "Did you = mean:";
        =         // Loop through the results
                for (var i=3D0; = i<result.Placemark.length; i++) {
              =     var p =3D result.Placemark[i].Point.coordinates;
        = document.getElementById("message").style.display=3D"block";
            =       document.getElementById("message").innerHTML +=3D = "<br>"+(i+1)+": <a href=3D'javascript:place(" = +p[1]+","+p[0]+")'>"+ = result.Placemark[i].address+"<\/a>";
            =     }
      =         }
  =             // =3D=3D=3D=3D=3D If there = was a single marker =3D=3D=3D=3D=3D
 =             else {
            =     document.getElementById("message").innerHTML =3D = "";
          =       var p =3D = result.Placemark[0].Point.coordinates;
                = place(p[1],p[0]);
      =         }
  =             
            = }
          =   // =3D=3D=3D=3D=3D=3D Decode the error status =3D=3D=3D=3D=3D=3D
            = else {
        =       var reason=3D"Code "+result.Status.code;
              = if (reasons[result.Status.code]) {
            =     reason =3D reasons[result.Status.code]
              = } 
        =       alert('Could not find "'+search+ '" ' + = reason);
            = }
          = }
        = );
      }

    }
  =   
    // display a = warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps = API is not compatible with this browser");
    }

    = // This Javascript is based on code provided by the
    // Community Church Javascript = Team

  =   //]]>
    = </script>


= </fieldset><br />
 
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/l= ist/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_8275D330-D32B-4A89-819E-30B7DF9BA09D-- Steve Craig

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

send mail problem? (1997) Multi-processor Mac info ... (1997) (1997) Reversed words (1997) First postarg not taking in $Commands (1997) RE: Re:Signal Raised (1997) Almost a there but..bye bye NetCloak (1997) [searchString] (1997) Thanks and new Question on lineitems (2002) Re2: frames & carts (1997) Forms Search Questions (1997) Price Not Appearing SOLUTION (2000) Generating Options for a Form. (1997) WebCatalog/WebMerchant 2.1 (1998) WebCat2: Items xx to xx shown, etc. (1997) limitation found on group searching (1997) Cart Question (1998) Sendmail truncation in Eudora Clients (1998) WebCat2 Append problem (B14Macacgi) (1997) Help formatting search results w/ table (1997)