I have the following code in a html panel. I need some advise as to my variables i think? I am not seeing the specific location but i do see a map. Please note that fro this post i have set the the lat and long in the label.text().
precode
<script>
var getlat = Appery ('latLbl').text(47.6063889);
var getlong = Appery ('longLbl').text(-122.3308333);
var latlong = getlat+','+getlong;
var img_url="http://maps.googleapis.com/maps/api/staticmap?size=250x250&maptype=hybrid
";
function showError(error)
{
switch(error.code)
{
case error.PERMISSION_DENIED:
x.innerHTML="User denied the request for Geolocation."
break;
case error.POSITION_UNAVAILABLE:
x.innerHTML="Location information is unavailable."
break;
case error.TIMEOUT:
x.innerHTML="The request to get user location timed out."
break;
case error.UNKNOWN_ERROR:
x.innerHTML="An unknown error occurred."
break;
}
}
/code/pre