owncloud-archive / maps

:globe_with_meridians: Maps app for ownCloud
GNU Affero General Public License v3.0
42 stars 20 forks source link

Favorites #9

Closed jancborchardt closed 8 years ago

jancborchardt commented 10 years ago

It should be possible to set points as favorites. They could be shown with star markers on the map, and this layer could be possible to disable in the sidebar.

Similarly, Contacts addresses could be shown as favorites by default (or at least the addresses of the contacts you set as favorite in the Contacts app).

cc @brantje

brantje commented 10 years ago
ant0nioli commented 8 years ago

I can't add favorites. When I click the ling on the POI nothing happens. Tks.

jancborchardt commented 8 years ago

cc @v1r0x for info. :)

v1r0x commented 8 years ago

I implemented it right now. But I don't know how to get/set the name of a favorite? WIth my JS "skills" I couldn't get the information of the added POI. Any ideas how to do this?

@jancborchardt cc @DJaeger @Henni

jancborchardt commented 8 years ago

cc @MorrisJobke @PVince81 @Henni for JS knowledge. :)

ant0nioli commented 8 years ago

Hi @v1r0x and @jancborchardt. In these days I'm pretty busy, but as soon as I can I will take a look to that. Maybe joining our skills we can get through that :)

jancborchardt commented 8 years ago

@acaparrelli would be really cool to have you on board for the Maps app when you have more free time! :)

ant0nioli commented 8 years ago

I would love to do that @jancborchardt ! :) On 16/11/2015 11:27, Jan-Christoph Borchardt wrote:

@acaparrelli https://github.com/acaparrelli would be really cool to have you on board for the Maps app when you have more free time! :)

— Reply to this email directly or view it on GitHub https://github.com/owncloud/maps/issues/9#issuecomment-156982000.

AC.

v1r0x commented 8 years ago

The most important question is what we want to store? Currently a user defined name, latitude, longitude, user_id and a timestamp is stored.

jancborchardt commented 8 years ago

Additionally what Maps.me seems to store is a group, color of marker (depends on group), and a Notes field.

ant0nioli commented 8 years ago

As @jancborchardt I think a Tag (or we could call it Group or Category) and a Color should be assigned to each POI. This would be useful to group POIs ("restaurants", "best stores", "tapas bars", etc) and even to give the ability of embedding POIs Tag's maps in public HTML websites. I mean, embed a map with "restaurants" only or a map with "restaurants" + "tapas bars" + ...

Note field would be great too.

On 17/11/2015 12:50, v1r0x wrote:

The most important question is what we want to store? Currently a user defined name, latitude, longitude, user_id and a timestamp is stored.

— Reply to this email directly or view it on GitHub https://github.com/owncloud/maps/issues/9#issuecomment-157347504.

AC.

v1r0x commented 8 years ago

So if I want to add @jancborchardt address as favorite, only the lat/lon is stored without the street, city, etc.?

ant0nioli commented 8 years ago

I think that storing city, street, number etc it would be more precise and future proof

jancborchardt commented 8 years ago

We need to use the lat/long because you can also add favorites in random places where there’s no address or when the thing you’re trying to favorite doesn’t exist yet on OpenStreetMap. An address can be supplementary, but can never be the identifying factor.

v1r0x commented 8 years ago

Should we only store lat/lon for now?

jancborchardt commented 8 years ago

Start small, yep. Lat/lon is the absolute minimum. Name is next – can be prefilled by the establishment you favorite, if it is any, and can be custom filled in the future. Everything else is additional.

v1r0x commented 8 years ago

Ok, I will create a PR with my code later

v1r0x commented 8 years ago

Create the PR #78 but the data in the DB is always NULL. Any idea what is wrong? @jancborchardt @Henni @DJaeger

v1r0x commented 8 years ago

Should we add the Favorite-Layer to the sidebar and showing them on the maps in the current PR #79 or in a new one?

jancborchardt commented 8 years ago

Separate one is better – always small steps. :)

v1r0x commented 8 years ago

Now that we have a very basic favorite functionality I'd like to collect the desired contents of this issue.

Did I miss something?

jancborchardt commented 8 years ago

Yep, that's a good next step! I like the direct integration of favorite Contacts, good thinking.

v1r0x commented 8 years ago

It was your idea in the OP ;)

jancborchardt commented 8 years ago

@v1r0x lol :D I guess good job @jancborchardt then …

Henni commented 8 years ago

advanced todos:

maybe these should be their own issues

v1r0x commented 8 years ago

I think all icons should be prettier, not only the fav marker, so I would definitely move this to it's own issue

v1r0x commented 8 years ago

I tried to implement the contact favorite thing, but I couldn't find any API or entry in the VCARD which allows me to get the information if a contact is starred or not. Did I miss something or is it not possible?

jancborchardt commented 8 years ago

Is that possible with the new CardDAV API? @Henni @DeepDiver1975

jancborchardt commented 8 years ago

It’s all in the individual issues now so I’m closing this. Also see »Ability to remove favorites« https://github.com/owncloud/maps/issues/95