diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-01 12:39:30 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-01 12:39:30 +0100 |
| commit | 6dff0b435a059f0c66b842673677c13bfd95f7c4 (patch) | |
| tree | f0179abf954788160ffeffff134c6307ff0f00c3 /objects.js | |
| parent | 6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca (diff) | |
| download | snap-yow-6dff0b435a059f0c66b842673677c13bfd95f7c4.tar.gz snap-yow-6dff0b435a059f0c66b842673677c13bfd95f7c4.zip | |
add overpass API block
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -219,12 +219,16 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'lat, lon of %s', defaults: ['Tiergarten Berlin'] }, - // TODO: move these to a 'map' category or so reportGeocode: { type: 'reporter', category: 'motion', spec: 'address at lon: %n lat: %n' }, + overpassQuerySucceeds: { + type: 'predicate', + category: 'motion', + spec: 'overpass query %s returns elements' + }, focusMap: { type: 'command', category: 'motion', @@ -1778,9 +1782,14 @@ SpriteMorph.prototype.blockTemplates = function (category) { if (cat === 'motion') { blocks.push(block('userLon')); blocks.push(block('userLat')); + blocks.push('-'); + blocks.push(block('overpassQuerySucceeds')); + blocks.push('-'); blocks.push(block('reportGeocode')); blocks.push(block('findLocation')); + blocks.push('-'); blocks.push(block('focusMap')); + blocks.push('-'); //if (this.world().isDevMode) { blocks.push(block('addMarker')); |
