Page 1 of 1

Static Google Map in html panel

Posted: Tue Jul 02, 2013 4:47 am
by Tommy B

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')&#46;text(47&#46;6063889);
var getlong = Appery ('longLbl')&#46;text(-122&#46;3308333);
var latlong = getlat+','+getlong;

var img_url="http:&#47;&#47;maps&#46;googleapis&#46;com&#47;maps&#47;api&#47;staticmap?size=250x250&maptype=hybrid

Image";

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