Tommy B
Posts: 0
Joined: Sat Sep 15, 2012 3:39 am

Static Google Map in html panel

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

Return to “Issues”