punkish / ocellus

eye see you
https://ocellus.info
Creative Commons Zero v1.0 Universal
3 stars 0 forks source link

moar map #58

Open punkish opened 4 weeks ago

punkish commented 4 weeks ago

announcing, a new way to search Ocellus… via maps. Granted, this is only for the records that are geocoded, but still, I have been testing it and find it quite useful and fun

Now, when you got to Ocellus, you will notice a new globe button (far right) in the list of quicksearch buttons

image

Click on that and enjoy the maps.

I have been working on this for the past almost two months, and had to build entirely new map widgets for the phone. Yes, it does work on the phone. There are a couple of glitches that I already know about, but it is still quite useful to be able to click on an image marker and view its details quickly.

Please test it out and send me your complaints. As usual, in this issues tracker, and please, one item per issue. If you notice several problems, please open issues for each of them separately so I can track and fix them.

I will be writing more notes in the days to come and will share them via github.

Many thanks.

cc: @tcatapano @myrmoteras @flsimoes @Carol-Sokolowicz @gsautter @jugiora @juwingert @slint @lnielsen

punkish commented 4 weeks ago

the maps can also be reached directly via https://ocellus.info/maps.html

Also, the maps view, like a good web citizen, is bookmarkable. If you click on a marker and view its info, you can copy the URL and send it to a colleague who can click and open the exact same view on their computer.

myrmoteras commented 4 weeks ago

Is this only on mobile, that it is not possible to go directly to the figure in BLR but via a detour one needs to be aware of via TB. Tx for the effort D

punkish commented 4 weeks ago

hi Donat,

I don't understand your question fully, but here is some more clarification. The maps view is available on both desktop and mobile. In fact, it took me such long time to develop because I wanted it to work well on a phone.

I realize that I forgot to include the links to BLR in the indiv records. I will add that. Other than that, the functionality is similar to what it is in the non-maps interface.

Personally, I enjoy the maps interface, but the major drawback of it is that search is limited -- for now, it is only by location, that is, the geographic extent of the current map view. Also, since the number of records with geo information is less than half, you are not searching the entire db. Nevertheless, it is, I believe, a useful, and dare I say, an enjoyable alternative.

punkish commented 4 weeks ago

here is an example of a bookmarkable URL to a specific record that can be shared with a colleague

https://ocellus.info/maps.html#lat=-12.64034&lng=-8.73413&zoom=6&treatmentId=385D87B7FFADF8602D94FF25FABBFA88-197061

A note to the eagle-eyed among you -- the treatmentId=385D87B7FFADF8602D94FF25FABBFA88-197061 has two parts in the URL, the actual treatmentId 385D87B7FFADF8602D94FF25FABBFA88 and a portion after a hyphen 197061. When a treatment has more than one images, there is a separate marker for each image. For example, check out the following URL

https://ocellus.info/maps.html#lat=-10.94119&lng=-12.24976&zoom=6&treatmentId=2964E41DFFB2FFC3FF53C771FB06B547-185408

This is a cluster of four markers at the same location, hence, a single treatment with four images. One can view each of these images via each of the four markers. This is really cool when a treatment has 15 or even 20 images.

There is a problem I am already aware of regarding how these clusters are displayed. I am working to fix that soon as I can.