Skip to content

Instantly share code, notes, and snippets.

@pierrelorioux
pierrelorioux / google_sat.xml
Created June 3, 2015 19:59
google sat layer dans MOBAC
<customMapSource>
<name>Google SAT</name>
<minZoom>0</minZoom>
<maxZoom>19</maxZoom>
<tileType>JPG</tileType>
<tileUpdate>IfNoneMatch</tileUpdate>
<url>http://mt{$serverpart}.google.com/vt/lyrs=s,m&amp;hl=iw&amp;x={$x}&amp;y={$y}&amp;z={$z}</url>
<serverParts>0 1 2 3</serverParts>
</customMapSource>
<!doctype html>
<html>
<!--
Created using jsbin.com
Source can be edited via http://jsbin.com/UYulAVI/1/edit
-->
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
@pierrelorioux
pierrelorioux / roads.gesjson
Created December 18, 2013 10:35
roads.gesjson
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "@id": "way\/23282858", "highway": "secondary", "name": "RR22", "Etat": "BAD" }, "geometry": { "type": "LineString", "coordinates": [ [ 21.5224082, 5.2757876 ], [ 21.5219454, 5.2760241 ], [ 21.5214765, 5.2762364 ], [ 21.5207274, 5.2765154 ], [ 21.5184314, 5.2772734 ], [ 21.5177919, 5.2778131 ], [ 21.5170246, 5.2784377 ], [ 21.5164338, 5.2787773 ], [ 21.5158065, 5.279026 ], [ 21.5151488, 5.2792261 ], [ 21.5145581, 5.2793535 ], [ 21.5140891, 5.2793171 ], [ 21.5129685, 5.2791109 ], [ 21.512256, 5.2788926 ], [ 21.5114582, 5.2786864 ], [ 21.5106726, 5.2784984 ], [ 21.5100696, 5.2782558 ], [ 21.5089612, 5.2774129 ], [ 21.507942, 5.2766516 ], [ 21.5076192, 5.2763848 ], [ 21.507132, 5.2760149 ], [ 21.5068884, 5.27593 ], [ 21.5064679, 5.2758229 ], [ 21.5054343, 5.2751883 ],
.header{
position: absolute;
height:50px;
width:100%;
top:0px;
left:0px;
background:#404853;
}
.title{
color:white;
tje5teessxrhsdhrdsgsdrgdrgd
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<style type="text/css">
body { margin: 0px; padding: 0px }
#map { width: 100%; height: 100%; border: 0px; }
div#keys { position: absolute; z-index:100; margin-left: 100px; }
#legend { display: none }
div#keys span:hover + div#legend, #legend:hover { display: block }
@pierrelorioux
pierrelorioux / Track
Last active December 23, 2015 06:29
track
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtrkx="http://www.garmin.com/xmlschemas/TrackStatsExtension/v1" xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" creator="Oregon 650" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackStatsExtension/v1 http://www8.garmin.com/xmlschemas/TrackStatsExtension.xsd http://www.garmin.com/xmlschemas/WaypointExtension/v1 http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"><metadata><link h
@pierrelorioux
pierrelorioux / Nyamwamba
Last active December 22, 2015 17:59
AverPAssQL All buildings 1000m around River Nyamwamba
way["name"="River Nyamwamba"];
way
(around:1000)
["building"="yes"];
/*added by auto repair*/
(._;>;);
/*end of auto repair*/
out body;
@pierrelorioux
pierrelorioux / gist:6509638
Created September 10, 2013 13:47
OverpassQL Ploygon of Aleppo
area[int_name="Syria"];(relation[name="Aleppo"](area););/*added by auto repair*/(._;>;);/*end of auto repair*/out;
@pierrelorioux
pierrelorioux / gist:6509507
Created September 10, 2013 13:37
OverpassQL Hospitals in syria
[out:json];area[int_name="Syria"];(node[amenity="hospital"](area););out;