Commit Graph

4 Commits

Author SHA1 Message Date
mpl a91a98c58a pkg/test: remove FakeIndex
And fix its main users: tests in pkg/search.

Fixes #883

Change-Id: Ib04b8d6f2d56bfb24a8900520c97b24bccb3c78b
2017-12-01 19:59:26 +01:00
mpl e4b7db8274 server/camlistored/ui: improve map aspect search and markers
Notably:

-do not load any markers on an empty search query, because that would
mean loading absolutely all of the items with a location, which seems
like a bad idea.

-use different markers for different nodes. For now, foursquare
checkins, file images, and files have their own marker.

-vendor in https://github.com/lvoogdt/Leaflet.awesome-markers to achieve
the above, which relies on Font Awesome, which we already have in.
icons available for the markers: http://fontawesome.io/icons/

-when no location can be inferred from the search query, set the view to
encompass all markers that were drawn.

-when a location search is known, draw a rectangle representing the
results zone.

-use thumber for image in marker popup

-use title, if possible, instead of blobRef for link text in marker
popup

-switch to directly using OpenStreetMap tiles, instead of MapBox ones.

https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png

Change-Id: Ibc84fa988aea8b8d3a2588ee8790adf6d9b5ad7a
2017-07-06 01:03:03 +02:00
Stephen Searles bbecbc47cd search: fix panic when claim and permanode have no attributes.
fixes #881

Change-Id: Ifdea54a56bf879ca418763617acf7bd2b9159dad
2016-11-22 19:39:22 -08:00
Attila Tajti bdb350dc25 search: improve location describe performance
Use permanode attribute caches already in Corpus if
a suitable map exists for the owner and time being queried.
Move the location query back to the index to make
accessing these maps possible.

Add a test case to search/TestDescribeLocation where
no location should be returned.

Change-Id: Ic51451daf8f3610e3cc4a8fda0f0c005eba9b286
2016-11-15 17:48:00 +01:00