code: function() {
          listenerKeys_.push(
            olEventsListen(map, 'singleclick', handleMapClick_)
          );
          const queryOptions = /** @type {import('ngeo/query/MapQuerent.js').QueryOptions} */ (
            $injector.has('ngeoQueryOptions') ? $injector.get('ngeoQueryOptions') : {}
          );
          if (queryOptions.cursorHover) {
            listenerKeys_.push(
              olEventsListen(map, 'pointermove', handlePointerMove_)
            );
          }
        }
docs: Listen to the map events.