Skip to content
Snippets Groups Projects

feat(cleanup): remove communication with backend about search by coordinates

46 files
+ 351
2163
Compare changes
  • Side-by-side
  • Inline
Files
46
+ 1
3
@@ -24,7 +24,6 @@ If we want to search using coordinates, we need to provide an object with the fo
- coordinates: this property should indicate the x and y coordinates on the map. Its value should be an object type with x and y properties
- modelId: this property should indicate submap identifier. Its value should be a number type
- zoom: this property should indicate zoom level at which we want to trigger search. Its value should be a number type
- fitBounds: should the map be resized to the rectangle fitting all results. Its value should be a boolean type. This property is optional, and by default, its value is `false`.
##### Example of search by query:
@@ -38,12 +37,11 @@ window.minerva.map.triggerSearch({
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: 60 });
window.minerva.map.triggerSearch({
coordinates: { x: 1947, y: 5203 },
modelId: 51,
fitBounds: true,
zoom: 6,
});
```
Loading