MINERVA
Platform Documentation

Search can be done by query or coordinates. To search, plugins can use the triggerSearch method in window.minerva.map object available globally.

Search by query: If we want to search using a query, we need to provide an object with the following properties as an argument:

Example of search by query:#
window.minerva.map.triggerSearch({ query: 'NR4A2;SNCA;aspirin', perfectSearch: true });

window.minerva.map.triggerSearch({ query: 'NR4A2;SNCA;aspirin;morphine;PINK1' });

window.minerva.map.triggerSearch({ query: 'PINK1', fitBounds: true });

Search by coordinates: If we want to search using coordinates, we need to provide an object with the following properties as an argument:

Example of search by query:#
window.minerva.map.triggerSearch({ coordinates: { x: 947, y: 503 }, modelId: 60 });

window.minerva.map.triggerSearch({
  coordinates: { x: 1947, y: 5203 },
  modelId: 52,
  fitBounds: true,
});

window.minerva.map.triggerSearch({ coordinates: { x: 1947, y: 5203 }, modelId: 60, zoom: 5 });

window.minerva.map.triggerSearch({
  coordinates: { x: 1947, y: 5203 },
  modelId: 51,
  fitBounds: true,
  zoom: 6,
});