[OpenLayers-Commits] r10890 - sandbox/sonxurxo/wctravel/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Nov 11 15:19:39 EST 2010


Author: sonxurxo
Date: 2010-11-11 12:19:38 -0800 (Thu, 11 Nov 2010)
New Revision: 10890

Modified:
   sandbox/sonxurxo/wctravel/examples/wctravel.html
Log:
webcam.travel example done. Must add 'api.webcams.travel' to proxy.cgi, and provide a valid devid

Modified: sandbox/sonxurxo/wctravel/examples/wctravel.html
===================================================================
--- sandbox/sonxurxo/wctravel/examples/wctravel.html	2010-11-11 20:13:46 UTC (rev 10889)
+++ sandbox/sonxurxo/wctravel/examples/wctravel.html	2010-11-11 20:19:38 UTC (rev 10890)
@@ -10,7 +10,7 @@
         var zoom = 8;
         var map, layer;
         
-        var devid = "ENTER_A_VALID_webcam.travel_DEV_ID";
+        var devid = "ed2d027c5ed4e6bf6c1b6270c71c618f";
         
         function init(){
             map = new OpenLayers.Map( 'map' );
@@ -27,7 +27,6 @@
             OpenLayers.Request.issue({
                 method: "GET",
                 proxy: "/cgi-bin/proxy.cgi?url=",
-                //url: "http://api.webcams.travel/rest?devid=ed2d027c5ed4e6bf6c1b6270c71c618f&method=wct.webcams.list_by_country&country=ES&format=json",
                 url: "http://api.webcams.travel/rest?devid=" + devid + "&method=wct.webcams.list_nearby&lat=43.384965&lng=-8.392181&radius=2&per_page=100&format=json",
                 callback: function(response) {
                     var JSONReader = new OpenLayers.Format.JSON();



More information about the Commits mailing list