diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 17:51:52 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-02-28 17:51:52 +0100 |
| commit | 6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca (patch) | |
| tree | f23ed25c6fe53c6ec4f92c6599df9c4eacedb7ba /objects.js | |
| parent | 881165be429151d8f2593c6893dd23da90a5288b (diff) | |
| download | snap-yow-6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca.tar.gz snap-yow-6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca.zip | |
add geocoding block
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -219,6 +219,12 @@ 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' + }, focusMap: { type: 'command', category: 'motion', @@ -1772,6 +1778,7 @@ SpriteMorph.prototype.blockTemplates = function (category) { if (cat === 'motion') { blocks.push(block('userLon')); blocks.push(block('userLat')); + blocks.push(block('reportGeocode')); blocks.push(block('findLocation')); blocks.push(block('focusMap')); |
