Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: optionally show position of 'viewers' on map #17

Closed
inos-github opened this issue Sep 8, 2019 · 8 comments
Closed
Labels
enhancement New feature or request

Comments

@inos-github
Copy link

First of all thanks for sharing this great project!

From the 'viewer' point of view it would be nice to see not only the shared location but the own position (if available) as well.

Another idea: is it much work to integrate this into nextcloud as an app?

@bilde2910
Copy link
Owner

Thanks a lot for your feedback!

From the 'viewer' point of view it would be nice to see not only the shared location but the own position (if available) as well.

This is planned, but I don't know exactly when I can get back to it. I'll leave this issue open until I've managed to implement it.

Another idea: is it much work to integrate this into nextcloud as an app?

This will not happen, unfortunately. Hauk was made to be independent from other applications; in fact one of the reasons I made this was to get a non-Nextcloud alternative for PhoneTrack. There's not really any obvious purpose that I can see to have this integrated with Nextcloud. That said, go check out PhoneTrack, that might be what you need. :-)

@RuralYak
Copy link
Contributor

RuralYak commented Sep 9, 2019

One good reason to integrate it with some third parties is user authentication. So far you managed to avoid this topic. It is good decision for now. But eventually users and user authentication will show up

@bilde2910
Copy link
Owner

I'll leave that as a future concern for now. Since this project is meant to be self-hosted, chances are there will be very few users using each instance, all of them likely in the admin's circle of friends. At least for now, a static password should be sufficient for that purpose.

However, if there is need for it, instead of going through third party OAuth logins, I could consider adding htaccess-like authentication later. That would necessitate having a "username" field in the app, however. Not sure how I can solve that now, but I can cross that bridge when I come to it if this becomes a wanted feature later.

@bilde2910 bilde2910 added the enhancement New feature or request label Sep 9, 2019
@natrius
Copy link
Contributor

natrius commented Sep 11, 2019

Actually, there are multiple other services to self-host where user-authentification is needed already. I like Hauk because nothing like that is needed. I can show it to my friends and if they have the app and the password they can use it without creating an extra user.

The "show my own position as viewer" wold be nice but i don't know if that is possible with the browser.

@inos-github
Copy link
Author

Another idea: is it much work to integrate this into nextcloud as an app?

This will not happen, unfortunately. Hauk was made to be independent from other applications; in fact one of the reasons I made this was to get a non-Nextcloud alternative for PhoneTrack. There's not really any obvious purpose that I can see to have this integrated with Nextcloud. That said, go check out PhoneTrack, that might be what you need. :-)

That's plausible, thanks anyway.

From the 'viewer' point of view it would be nice to see not only the shared location but the own position (if available) as well.

This is planned, but I don't know exactly when I can get back to it. I'll leave this issue open until I've managed to implement it.

What I found so far is this

My programming skills are not good enough to write a solution for a PR, unfortunately. Sorry

@RuralYak
Copy link
Contributor

Yes, its possible. https://www.w3schools.com/html/html5_geolocation.asp

@bilde2910
Copy link
Owner

This has now been implemented. There is a geolocation control that will display and center the map on the user. The viewer gets a blue marker instead of a red one. Clicking the control again will hide the viewer from the map.

Due to browser security, geolocation of the map viewer only works on HTTPS.

@inos-github
Copy link
Author

Thank you very much for implementing this feature!!!
Already tested and it's working flawlessly 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants