User:Gormo

From OpenStreetMap Wiki
Jump to: navigation, search

Lived a long time near Goslar.

Now Hannover.



Mappe aktuell meist aus Satellitenbildern.


Web mapping

How to read github GIST GeoJSON files and display them on leaflet: http://jsfiddle.net/8p2o4qn6/6/

JSON from Overpass Turbo via AJAX call

var qry = "data=[out:json][timeout:25];(way(61195113);way(61206841););out tags;";
$.ajax( {
  url: "https://overpass-api.de/api/interpreter",
 data: { data: qry },
 jsonp: 'jsonp',
 dataType: 'jsonp',
 success: function(data,status,xhr) {
    if (data == undefined) {
      // should not be reached
      console.log("Barf!");
    } else {
      $.each(data.elements,
        function(i,v) {
          // i is numeric index, v is one returned element
          // handle ...
        }
      ); // end each
    } // end else clause of "if data == undefined"
  } // end success
}); // end ajax

http://overpass-api.de/api/interpreter?data=[out:json][timeout:25];(way(61195113);way(61206841););out tags;&jsonp=cb

read OSM wiki with jquery

 
			$("#loadwiki_button").on('click', function() {
				$.ajax( {
				  url: "http://wiki.openstreetmap.org/w/api.php",
				  data: {	action:'query',
					titles: $("#wikipage").val(),
					prop:'revisions',
					rvprop: 'content',
					rvsection: $("#secnum").val(),
					format:'json',
				  },
				  jsonp: 'callback',
				  dataType: 'jsonp',
				  success: function(data,status,xhr) {
						var txt = "";
						if (data.query == undefined) {
							// should not be reached
							console.log("Barf! No images???");
						} else {
							$.each(data.query.pages,
								function(i,v) {
									console.log(data.query.pages[i].revisions[0]['*']);
								}
							); // end each
						}
				  }, // end success
				}) // end ajax
			}); // end loadwiki_button onclick

Overpass Turbo snippets

Kundenparkplätze, die nicht als solche getaggt sind

name~"Kunden" and amenity=parking and access!~"customers"

http://overpass-turbo.eu/s/jA5

Wikidata-Tags auf interessantem Zeug

http://overpass-turbo.eu/s/jBJ

Bergbau

http://overpass-turbo.eu/s/ezV

_n-Tags

http://overpass-turbo.eu/s/dAq

Boards

http://overpass-turbo.eu/s/8Kh

{{style:

node {
  color: grey;
}

node[board_type=geology] {
  color: brown;
}

node[board_type=plants] {
  color: green;
}

node[board_type=nature] {
  color: darkgreen;
}

node[board_type=history] {
  color: orange;
}

node[board_type=notice] {
  color: magenta;
}

node[dennert_fir_tree=yes] {
  //dashes: 4,4;
  //color: darkgreen;
  icon-image: url("http://i.imgur.com/0Qll2ZC.jpg");
}

}}

Access style

{{style:
node[access] {
  symbol-size:5;
}
node[access=yes],node[access=public] {
  color: green;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
node[access=no],node[access=private] {
  color: red;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
node[access=permissive],node[access=customers],node[access=designated] {
  color: yellow;
  fill-color:none;
  //symbol-size:5;
  width:3;
}
}}

wikidata for places

http://overpass-turbo.eu/s/iod

Mehr Stil: http://overpass-turbo.eu/s/iug

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“place=* and place!~"locality"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “place=* and place!~locality”
  node["place"]["place"!~"locality"]({{bbox}});
);
// print results
out meta;
>;
out skel qt;

{{style:

node {
  color: red;
}

node[wikipedia] {
  color: blue;
}

node[wikidata] {
  color: green;
}

node[wikidata][wikipedia] {
  color: #00AAE4;
}

}}

Gallery

Field papers

Wendlandstraße: http://fieldpapers.org/atlases/3algku4a , http://fieldpapers.org/atlases/3bbz1p78

Herrenhauser Kirche: http://fieldpapers.org/atlases/5q6saq6g