Skip to content

Instantly share code, notes, and snippets.

@orfeomorello
orfeomorello / gist:995689
Created May 27, 2011 17:01
Localstreamer.com - Static Image Maps - API Demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Localstreamer Wrapper of Static Image Maps - Api Demo by Orfeo Morello</title>
<style>
*{
margin:0;
padding:0;
}
@orfeomorello
orfeomorello / gist:995682
Created May 27, 2011 16:58
Call mashape API to get a valid token to invoke our Api Wrapper for static maps
var currentLocation;
var currentLatitude;
var currentLongitude;
/* Default map provider. You can select Bing,Facebook,Foursquare,Google,Ovi,Openstreetmap */
var provider="Google";
var textFromDatabase="";
var goNext=0;
@orfeomorello
orfeomorello / gist:995679
Created May 27, 2011 16:57
Array of Arrays [place,latitude,longitude]
var pointsArray = new Array( new Array("San Francisco","37.75","-122.5"),
new Array("Monterey Peninsula","36.593849","-121.8341182"),
new Array("San Jose","37.3394444","-121.8938889"),
new Array("Silicon Valley","37.37","-122.04") );
@orfeomorello
orfeomorello / gist:995666
Created May 27, 2011 16:52
Invoke mahape api
var jsonToken ="PUT HERE YOUR JSONP Token";
var tokenUrl = "https://api.mashape.com/requestToken?jsonptoken="+jsonToken;