Created
September 3, 2010 00:35
-
-
Save jcleblanc/563198 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript' src='yql_js_widget.js'></script> | |
<div id='widgetContainer'></div> | |
<script type='text/javascript'> | |
var config = {"debug":true}; | |
var format = "<br style='clear:both' /><img src='{content}' width='620' height='500' alt='map' />"; | |
var yqlQuery = "SELECT * FROM maps.map WHERE (latitude, longitude) IN (SELECT match.place.centroid.latitude, match.place.centroid.longitude FROM geo.placemaker WHERE documentURL = 'http://www.cnn.com/' AND documentType='text/html' AND appid='')"; | |
var insertEl = "widgetContainer"; | |
yqlWidget.push(yqlQuery, config, format, insertEl); | |
yqlWidget.render(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment