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
var map, layer; | |
function init(){ | |
map = new OpenLayers.Map('map', { | |
layers: [new OpenLayers.Layer.OSM()] | |
}); | |
layer = new OpenLayers.Layer.XYZ( "ESRI", | |
"https://services1.arcgis.com/rMlsWo8szOzlrpCq/arcgis/rest/services/danger_d_avalanche/MapServer/tile/${z}/${y}/${x}", | |
{sphericalMercator: true, isBaseLayer: false} | |
); | |
map.addLayer(layer); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import httplib2 | |
httplib2.debuglevel = 4 | |
PROXY_SERVER = "http://proxy.iiit.ac.in" | |
PROXY_PORT = 8080 | |
PROXY = httplib2.ProxyInfo(httplib2.socks.PROXY_TYPE_HTTP, PROXY_SERVER, PROXY_PORT, proxy_rdns=True) | |
h = httplib2.Http(proxy_info=PROXY) | |
(resp_headers, content) = h.request("http://example.org/", "GET") | |
print content |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> | |
<link rel="stylesheet" href="//openlayers.org/en/master/css/ol.css" type="text/css"> | |
<link rel="stylesheet" href="//openlayers.org/en/master/resources/bootstrap/css/bootstrap.min.css" type="text/css"> | |
<link rel="stylesheet" href="//openlayers.org/en/master/resources/layout.css" type="text/css"> | |
<link rel="stylesheet" href="//openlayers.org/en/master/resources/bootstrap/css/bootstrap-responsive.min.css" type="text/css"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css"> | |
<script src="http://openlayers.org/en/master/build/ol.js"></script> | |
</head> | |
<body> | |
<div id="map"></div> |

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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>OpenLayers3 Map Rotation with device compass</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> | |
<link rel="stylesheet" href="style.css"> | |
<link rel="stylesheet" href="http://openlayers.org/en/master/css/ol.css" type="text/css"> |
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
<html> | |
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
something |