diff options
| -rw-r--r-- | lang-de.js | 2 | ||||
| -rw-r--r-- | objects.js | 16 | ||||
| -rw-r--r-- | threads.js | 4 |
3 files changed, 5 insertions, 17 deletions
@@ -300,6 +300,8 @@ SnapTranslator.dict.de = { 'Breitengrad, L\u00e4ngengrad von %s', 'set focus to longitude: %n latitude: %n with zoom %n': 'setze den Fokus auf L\u00e4ngengrad: %n Breitengrad: %n mit dem Zoom %n', + 'overpass query %s returns elements': + 'Overpass-Anfrage %s gibt Elemente zurück', 'move %n meters': 'gehe %n Meter', 'turn %clockwise %n degrees': @@ -226,7 +226,7 @@ SpriteMorph.prototype.initBlocks = function () { }, overpassQuerySucceeds: { type: 'predicate', - category: 'motion', + category: 'sensing', spec: 'overpass query %s returns elements' }, focusMap: { @@ -235,12 +235,6 @@ SpriteMorph.prototype.initBlocks = function () { spec: 'set focus to longitude: %n latitude: %n with zoom %n', defaults: [0, 0, 12] }, - addMarker: { - dev: true, - type: 'command', - category: 'motion', - spec: 'debug: add a marker to %l' - }, // Motion forward: { @@ -1801,18 +1795,12 @@ SpriteMorph.prototype.blockTemplates = function (category) { 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')); - //} - blocks.push('='); blocks.push(block('forward')); @@ -2021,6 +2009,8 @@ SpriteMorph.prototype.blockTemplates = function (category) { blocks.push(block('doSetFastTracking')); blocks.push('-'); blocks.push(block('reportDate')); + blocks.push('-'); + blocks.push(block('overpassQuerySucceeds')); // for debugging: /////////////// @@ -2638,10 +2638,6 @@ Process.prototype.focusMap = function (lon, lat, zoom) { window.map.setView([lat, lon], zoom); }; -Process.prototype.addMarker = function (pos) { - L.marker(pos.contents).addTo(window.map); -}; - // Nesting reporters that 'doYield' sucks; as a workaround, // there is a library imported that uses this function. // TODO: Improve this :) |
