bettermap.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. == Bettermap
  2. Status: *Experimental*
  3. Bettermap is called bettermap for lack of a better name. Bettermap uses geographic coordinates to
  4. create clusters of markers on map and shade them orange, yellow and green depending on the
  5. density of the cluster.
  6. To drill down, click on a cluster. The map will be zoomed and the cluster broken into smaller cluster.
  7. When it no longer makes visual sense to cluster, individual markers will be displayed. Hover over
  8. a marker to see the tooltip value/
  9. IMPORTANT: bettermap requires an internet connection to download its map panels.
  10. // src/app/panels/bettermap/module.js:5
  11. === Parameters
  12. field:: The field that contains the coordinates, in geojson format. GeoJSON is
  13. +[longitude,latitude]+ in an array. This is different from most implementations, which use
  14. latitude, longitude.
  15. // src/app/panels/bettermap/module.js:62
  16. size:: The number of documents to use when drawing the map
  17. // src/app/panels/bettermap/module.js:70
  18. spyable:: Should the `inspect` icon be shown?
  19. // src/app/panels/bettermap/module.js:74
  20. tooltip:: Which field to use for the tooltip when hovering over a marker
  21. // src/app/panels/bettermap/module.js:78
  22. ==== Queries
  23. queries object:: This object describes the queries to use on this panel.
  24. queries.mode::: Of the queries available, which to use. Options: +all, pinned, unpinned, selected+
  25. queries.ids::: In +selected+ mode, which query ids are selected.
  26. // src/app/panels/bettermap/module.js:82