##iD history transplant
###Browser 1
- Open "Help" and start walkthrough
- Open developer console
- Change "main frame/top frame" to "id-embed" if necessary, eg. running from openstreetmap.org
- Run this:
(function getHistory() {
obj = { | |
presets: { | |
'aerialway/zip_line': { | |
geometry: ["line"], | |
fields: ["incline"], | |
tags: { "aerialway": "zip_line" }, | |
name: "Zipline" | |
} | |
} | |
}; |
iD.util.displayName = function(entity) { return entity.id; } |
DECLARE @search VARCHAR(255) | |
SET @search = '[10.10.100.50]' | |
SELECT DISTINCT | |
o.name AS Object_Name, | |
o.type_desc | |
FROM | |
sys.sql_modules m | |
INNER JOIN sys.objects o ON m.object_id = o.object_id | |
WHERE |
##iD history transplant
###Browser 1
(function getHistory() {
// https://github.com/twain47/Nominatim/blob/master/lib/ReverseGeocode.php | |
function whereami(z) { | |
var endpoint = 'https://nominatim.openstreetmap.org/reverse?', | |
loc = id.map().center(); | |
d3.json(endpoint + | |
iD.util.qsString({format: 'json', addressdetails: 1, lat: loc[1], lon: loc[0], zoom: z }), | |
function(err, result) { console.info(result); } | |
); | |
} |
id.surface().on('mousemove.custom', function() { | |
function wrap(x, min, max) { var d = max - min; return ((x - min) % d + d) % d + min; } | |
var ll = d3.select('#content') | |
.selectAll('#latLng') | |
.data([0]); | |
ll.enter() | |
.append('div') | |
.attr('id', 'latLng') |
['touchstart', 'touchend', 'touchcancel', | |
'mousedown', 'mouseup', | |
'click', 'dblclick', 'contextmenu', | |
'dragstart', 'dragend', | |
'movestart', 'moveend', | |
'zoomstart', 'zoomend', | |
'rotatestart', 'rotateend', | |
'pitchstart', 'pitchend', | |
'boxzoomstart', 'boxzoomend', 'boxzoomcancel' | |
].forEach(function (type) { |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>SVG Swarm</title> | |
<style> | |
svg { | |
position: absolute; | |
top: 0; | |
} |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>SVG Swarm</title> | |
<style> | |
svg { | |
position: absolute; | |
top: 0; | |
} |