From 6c76ce64d7fb274eb70f4feef17a9bf6dd2093ca Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sat, 28 Feb 2015 17:51:52 +0100 Subject: add geocoding block --- objects.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'objects.js') 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')); -- cgit v1.3.1