Skip to content

Instantly share code, notes, and snippets.

@tzmartin
Last active December 16, 2015 20:06
Show Gist options
  • Save tzmartin/729d9a92181294bda9e6 to your computer and use it in GitHub Desktop.
Save tzmartin/729d9a92181294bda9e6 to your computer and use it in GitHub Desktop.
Titanium Google Maps Streetview Hack
Ti.UI.createWebView({
  html:"<html><head><meta name='viewport' content='width=850,user-scalable=no'/><script src='http://maps.google.com/maps/api/js?sensor=false' type='text/javascript'></script></head><body onload=\"new google.maps.StreetViewPanorama(document.getElementById('p'),{position:new google.maps.LatLng("+lat+", "+lon+")});\" style='padding:0px;margin:0px;'><div id='p' style='height:100%;width:100%;'></div></body></html>",
  backgroundColor:'#000',
  width:850,
  height:650
});
@tzmartin
Copy link
Author

Result:
Streetview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment