GispoCoding / tarmo

Tarmo - Tampere Mobilemap
https://ulkoilutampereenseutu.fi/
MIT License
11 stars 3 forks source link

Change the "snapping distance" of the cursor #134

Closed pavetsu14 closed 2 years ago

pavetsu14 commented 2 years ago

Currently the cursor needs to be quite accurately on top of the point symbol in order to change the cursor active (allowing to click the feature to see all attribute information). Figure out if this "radius" / "distance" can be increased to that the cursor would "snap" to features further away.

Take a closer look on whether MapLibre supports adjusting this sensitivity parameter e.g. by setting a buffer radius.

Rikuoja commented 2 years ago

It looks like this depends on the symbol size directly.

I would suggest that we wait until we have the actual point symbols (with icons in them), they are larger than the current points. Also the lines will be widened, so let's see how they work afterwards.

Rikuoja commented 2 years ago

I guess this means increasing the symbol size.

We should try making the lines thicker at closer zooms. It is easy to make a line thickness depend on zoom level.

Rikuoja commented 2 years ago

". Viivamaisissa kohteissa tarttumispinta-ala on aika kapea, siihen on hankala osua kun haluaa klikata kohdetta ja saada lisätietoa."

Rikuoja commented 2 years ago

"Toisinaan kartta ei ottanut täppäystä, vaan reittiä saattoi joutua tökkimään useamman kerran ennen kuin sen tiedot tulivat näkyviin."

Rikuoja commented 2 years ago

Increased the line width when zoomed. Any better now?

SannaJokela commented 2 years ago

Better thank you!