summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-02-28 17:51:52 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-02-28 17:51:52 +0100
commit6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca (patch)
treef23ed25c6fe53c6ec4f92c6599df9c4eacedb7ba /objects.js
parent881165be429151d8f2593c6893dd23da90a5288b (diff)
downloadsnap-yow-6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca.tar.gz
snap-yow-6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca.zip
add geocoding block
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/objects.js b/objects.js
index 92367f1..3bdda48 100644
--- a/objects.js
+++ b/objects.js
@@ -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'));